auth_redirect action-hookWP 2.8.0

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

auth_redirect()
auth_redirect
wp-includes/pluggable.php 1221
do_action( 'auth_redirect', $user_id );

Where the hook is used in WordPress

Usage not found.