1. Home
  2. For Devs
  3. Filter
  4. Delete User Administrators
  1. Home
  2. Plugins
  3. WP Webhooks
  4. For Devs
  5. Filter
  6. Delete User Administrators

Delete User Administrators

wpwhpro/run/delete_action_user_admins

Description:
This filter allows you to delete even administrator accounts. By default it is deactivated to provide you the best security possible.

Parameter Type Description
false bool True if you want to delete administrators as well.

/**
* Activate the deletion of users that have the administrator role. Default: false
*/
$delete_administrators = apply_filters( 'wpwhpro/run/delete_action_user_admins', false );

Updated on August 10, 2019

Was this article helpful?

Related Articles