WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about admin_email_check_interval

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-login.php apply_filters 601 /**
* Filters the interval for redirecting the user to the admin email confirmation screen.
*
* If `0` (zero) is returned, the user will not be redirected.
*
* @since 5.3.0
*
* @param int $interval Interval time (in seconds). Default is 6 months.
*/
wp-login.php apply_filters 1304 /** This action is documented in wp-login.php */
do_action( 'login_footer' );

if ( $customize_login ) {
?>

}

?>


exit;
}

// Check if it is time to add a redirect to the admin email confirmation screen.
if ( is_a( $user, 'WP_User' ) && $user->exists() && $user->has_cap( 'manage_options' ) ) {
$admin_email_lifespan = (int) get_option( 'admin_email_lifespan' );

/*
* If `0` (or anything "falsey" as it is cast to int) is returned, the user will not be redirected
* to the admin email confirmation screen.
*/

Hook Parameters

Parameter Type Name Description
int $interval Interval time (in seconds). Default is 6 months.
int $interval Interval time (in seconds). Default is 6 months.