Admin & Dashboard PHP Beginner

Turn Off the Admin Email Confirmation Screen

Stop WordPress asking administrators every six months to confirm the site's admin email address after they log in.

Tested on WordPress 7.1 PHP 8.3 No plugin needed Updated
functions.php 1 lines
add_filter( 'admin_email_check_interval', '__return_zero' );

Where to add this

Recommended A code snippets plugin Survives theme changes and is easy to switch off.
Child theme At the end of your child theme's functions.php file.
Must-use plugin As a .php file in wp-content/mu-plugins, starting with <?php.

Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.

Every six months WordPress interrupts an administrator’s login with “Please verify that the administration email for this website is still correct.” On agency-managed sites, clients find it confusing. This snippet turns it off.

How it works

The admin_email_check_interval filter sets how often, in seconds, WordPress shows the confirmation screen. Returning zero turns the check off.

Things to watch

  • The check exists so a stale admin email doesn’t go unnoticed. If you turn it off, check Settings → General yourself now and then.
  • Password reset and security emails still go to the admin address as normal.

How to test it

You can’t easily trigger the screen on demand. Check that admin_email_lifespan is no longer updated in the options table after logging in.

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only