check_passwords хук-событиеWP 1.5.1

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


add_action( 'check_passwords', 'wp_kama_check_passwords_action', 10, 3 );

 * Function for `check_passwords` action-hook.
 * @param string $user_login The username.
 * @param string $pass1      The password (passed by reference).
 * @param string $pass2      The confirmed password (passed by reference).
 * @return void
function wp_kama_check_passwords_action( $user_login, $pass1, $pass2 ){

	// action...
The username.
The password (passed by reference).
The confirmed password (passed by reference).

Список изменений

С версии 1.5.1 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.