delete_user_form
This action is documented in wp-admin/users.php.
Description
Parameters (2)
- 0. $current_user (unknown)
- The current user.
- 1. $allusers (unknown)
- The allusers.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'delete_user_form', $current_user, $allusers );
- The following example is for adding a hook callback.
- // define the delete_user_form callback
- function action_delete_user_form( $current_user, $allusers ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'delete_user_form', 'action_delete_user_form', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'delete_user_form', 'action_delete_user_form', 10, 2 );
Defined (2)
The action is defined in the following location(s).
- /wp-admin/includes/ms.php
- do_action( 'delete_user_form', $current_user, $allusers );
- /wp-admin/users.php
- do_action( 'delete_user_form', $current_user, $userids );