delete_user_form

This action is documented in wp-admin/users.php.

Description

do_action( 'delete_user_form', (unknown) $current_user, (unknown) $allusers ); 

Parameters (2)

0. $current_user (unknown)
The current user.
1. $allusers (unknown)
The allusers.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'delete_user_form', $current_user, $allusers ); 
The following example is for adding a hook callback.
  1. // define the delete_user_form callback 
  2. function action_delete_user_form( $current_user, $allusers ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'delete_user_form', 'action_delete_user_form', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. 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  
  1. do_action( 'delete_user_form', $current_user, $allusers ); 
/wp-admin/users.php  
  1. do_action( 'delete_user_form', $current_user, $userids );