auth_redirect
Fires before the authentication redirect.
Usage
add_action( 'auth_redirect', 'wp_kama_auth_redirect_action' );
/**
* Function for `auth_redirect` action-hook.
*
* @param int $user_id User ID.
*
* @return void
*/
function wp_kama_auth_redirect_action( $user_id ){
// action...
}
- $user_id(int)
- User ID.
Changelog
| Since 2.8.0 | Introduced. |
Where the hook is called
wp-includes/pluggable.php 1321
do_action( 'auth_redirect', $user_id );