check_passwords
Fires before the password and confirm password fields are checked for congruity.
Description
Parameters (1)
- 0. $array (array) =>
array( $user->user_login, &$pass1, &$pass2 )
- The array.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'check_passwords', $array );
- The following example is for adding a hook callback.
- // define the check_passwords callback
- function action_check_passwords( $array ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'check_passwords', 'action_check_passwords', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- 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
- do_action_ref_array( 'check_passwords', array( $user->user_login, &$pass1, &$pass2 ) );