Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / Hooks / admin_email_check_interval

apply_filters( 'admin_email_check_interval', int $interval )

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

Contents

  • Description
  • Parameters
  • Source
  • Changelog
  • User Contributed Notes

Description

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


Top ↑

Parameters

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

Top ↑

Source

File: wp-login.php. View all references

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

View on Trac View on GitHub


Top ↑

Changelog

Changelog
Version Description
5.3.0 Introduced.

Top ↑

User Contributed Notes

  1. Skip to note 1 content
    You must log in to vote on the helpfulness of this noteVote results for this note: 0You must log in to vote on the helpfulness of this note
    Contributed by Caspie — 3 years ago
    /**
     * 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;
    } );
    Log in to add feedback
  2. Skip to note 2 content
    You must log in to vote on the helpfulness of this noteVote results for this note: 0You must log in to vote on the helpfulness of this note
    Contributed by Chris David Miles — 7 months ago
    /**
     * Disable site admin email verification
     */
    add_filter( 'admin_email_check_interval', '__return_false' );
    Log in to add feedback

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

  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.