delete_user_form
This action is documented in wp-admin/users.php.
Description
Parameters (2)
- 0. $current_user (WP_User)
-
WP_User
object for the current user. - 1. $userids (array)
- Array of IDs for users being deleted.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'delete_user_form', $current_user, $userids );
- The following example is for adding a hook callback.
- // define the delete_user_form callback
- function action_delete_user_form( $current_user, $userids ) {
- // 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/users.php
- do_action( 'delete_user_form', $current_user, $userids );
- /wp-admin/includes/ms.php
- do_action( 'delete_user_form', $current_user, $allusers );