check_passwords

Fires before the password and confirm password fields are checked for congruity.

Description

do_action( 'check_passwords', (array) $array ); 

Parameters (1)

0. $array (array) => array( $user->user_login, &$pass1, &$pass2 )
The array.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'check_passwords', $array ); 
The following example is for adding a hook callback.
  1. // define the check_passwords callback 
  2. function action_check_passwords( $array ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'check_passwords', 'action_check_passwords', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'check_passwords', 'action_check_passwords', 10, 1 ); 

Defined (1)

The action is defined in the following location(s).

/wp-admin/includes/user.php  
  1. do_action_ref_array( 'check_passwords', array( $user->user_login, &$pass1, &$pass2 ) );