apply_filters( ‘admin_email_check_interval’, int $interval )

Filters the interval for redirecting the user to the admin email confirmation screen.

Description

If 0 (zero) is returned, the user will not be redirected.

Parameters

$intervalint
Interval time (in seconds). Default is 6 months.

Source

$admin_email_check_interval = (int) apply_filters( 'admin_email_check_interval', 6 * MONTH_IN_SECONDS );

Changelog

VersionDescription
5.3.0Introduced.

User Contributed Notes

  1. Skip to note 3 content
    /**
     * Lower the admin email check interval down to 3 months.
     */
    add_filter( 'admin_email_check_interval', static function ( $interval ) {
    	// Check if the interval has the default value of 6 months and if so, lower it to 3 months.
    	if ( 6 * MONTH_IN_SECONDS === $interval ) {
    		$interval = 3 * MONTH_IN_SECONDS;
    	}
    
    	// Return the adjusted interval.
    	return $interval;
    } );

You must log in before being able to contribute a note or feedback.