The admin_email_check_interval WordPress PHP filter allows you to modify the interval for redirecting the user to the admin email confirmation screen.
Usage
add_filter( 'admin_email_check_interval', 'customize_admin_email_check_interval' ); function customize_admin_email_check_interval( $interval ) { // your custom code here return $interval; }
Parameters
$interval
: int, interval time (in seconds), default is 6 months.
More information
See WordPress Developer Resources: admin_email_check_interval
Examples
Disable admin email confirmation
Disable admin email confirmation by returning 0:
add_filter( 'admin_email_check_interval', '__return_zero' );
Change interval to 3 months
Set the admin email confirmation interval to 3 months:
add_filter( 'admin_email_check_interval', 'set_three_months_interval' ); function set_three_months_interval() { return 3 * MONTH_IN_SECONDS; }
Change interval to 1 year
Set the admin email confirmation interval to 1 year:
add_filter( 'admin_email_check_interval', 'set_one_year_interval' ); function set_one_year_interval() { return YEAR_IN_SECONDS; }
Change interval to 1 week
Set the admin email confirmation interval to 1 week:
add_filter( 'admin_email_check_interval', 'set_one_week_interval' ); function set_one_week_interval() { return WEEK_IN_SECONDS; }
Change interval to 1 day
Set the admin email confirmation interval to 1 day:
add_filter( 'admin_email_check_interval', 'set_one_day_interval' ); function set_one_day_interval() { return DAY_IN_SECONDS; }