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.
Usage
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(string)
- Username (passed by reference).
Changelog
| Since 1.5.1 | Introduced. |
Where the hook is called
wp-includes/user.php 81
do_action_ref_array( 'wp_authenticate', array( &$credentials['user_login'], &$credentials['user_password'] ) );