wp_authenticate
Fires before the user is authenticated.
The variables passed to the callbacks are passed by reference, and can be modified by callback functions.
Использование
add_action( 'wp_authenticate', 'wp_kama_authenticate_action' ); /** * Function for `wp_authenticate` action-hook. * * @param string $user_login Username (passed by reference). * * @return void */ function wp_kama_authenticate_action( $user_login ){ // action... }
- $user_login(строка)
- Username (passed by reference).
Список изменений
С версии 1.5.1 | Введена. |
Где вызывается хук
wp-includes/user.php 78
do_action_ref_array( 'wp_authenticate', array( &$credentials['user_login'], &$credentials['user_password'] ) );