You took over a WordPress site, or a developer moved on, and the site’s administration email still points at an inbox nobody on your team reads. That address gets the automatic update reports, the comments held for moderation, new-user alerts and the recovery-mode link WordPress sends after a fatal error. Change it under Settings → General, then click the confirmation link WordPress mails to the new address. If that mail never arrives, set the address with WP-CLI (WordPress’s command-line tool) and clear the pending request. The “Administration email verification” screen that appears after login every six months checks this same setting, and one filter controls how often it shows.
What you’ll accomplish
- Tell the site’s administration email apart from your own account email, and know what each one receives.
- Change the administration email the normal way and confirm it.
- Finish a change whose confirmation email never arrived, from the shell or from phpMyAdmin.
- Read when the verification screen is next due, and change its interval if your team manages the address centrally.
- Prove the new address works by sending a real message to it.
Prerequisites
- WordPress 4.9 or later for the email confirmation, and 5.3 or later for the verification screen. The behaviour below was checked against current WordPress core source in November 2026.
- An account with the Administrator role. Only users with the
manage_optionscapability can change this setting or see the verification screen. - For the shell steps: SSH access to the site with WP-CLI installed, so
wp option get siteurlprints your site URL from the WordPress folder. - Outgoing mail that works. If WordPress mail is unreliable on this server, fix that first or expect step 3 to be your path.
How it works
WordPress keeps two different addresses that people often mix up. The site’s administration email lives in the admin_email row of the options table, and Settings → General shows it. Your personal address lives on your user account under Users → Profile. Password resets go to the account address. Site-level notices go to admin_email.
When you save a new address, WordPress does not switch to it straight away. It stores the proposed address in a new_admin_email option and a random token in an adminhash option. Then it emails the new address with the subject “[Site Title] New Admin Email Address”. The link in that email opens wp-admin/options.php?adminhash=<token>. When the token matches, WordPress writes the new value into admin_email and deletes both pending options. The old address then receives a notice with the subject “[Site Title] Admin Email Changed”.
If the email never arrives, nothing changes. The old address stays active, and Settings → General keeps showing “There is a pending change of the administration email to…” until someone cancels it or finishes the change another way.
The verification screen is a separate reminder. WordPress stores a Unix timestamp in the admin_email_lifespan option. After an administrator logs in through the login form, WordPress compares that timestamp with the current time. Once it has passed, the browser is sent to wp-login.php?action=confirm_admin_email before the dashboard loads. The screen offers three choices:
| Button | What WordPress does |
|---|---|
| The email is correct | Sets the next check 6 months ahead (the admin_email_check_interval filter) |
| Update | Opens Settings → General with the address field highlighted |
| Remind me later | Sets the next check 3 days ahead (the admin_email_remind_interval filter) |
A new install sets the first check six months after installation. The upgrade to WordPress 5.3 usually reset it to 0 on existing sites, so they saw the screen at the next administrator login. A value of 0, or a missing option, has the same effect.
Here is where the administration email is used by core, so you know what you lose if it points at a dead inbox:
| Notice | Sent to |
|---|---|
| Automatic core, plugin and theme update results | Administration email (the network’s on multisite) |
| Comments held for moderation | Administration email, plus the post author if they can edit the comment |
| New user registrations | Administration email |
| Another user changed their password | Administration email |
| Recovery-mode link after a fatal error | Administration email, unless RECOVERY_MODE_EMAIL is defined in wp-config.php |
Step-by-step
-
Check what is set and whether a change is already pending. From the WordPress folder:
wp option get admin_email wp option get new_admin_email wp user list --role=administrator --fields=ID,user_login,user_emailExample output:
dev@former-agency.example ops@yourcompany.example +----+------------+------------------------------+ | ID | user_login | user_email | +----+------------+------------------------------+ | 1 | siteadmin | dev@former-agency.example | | 4 | mlavoie | m.lavoie@yourcompany.example | +----+------------+------------------------------+The first line is the active address. A second line that differs from it means a change is pending and waiting for its link. If
new_admin_emailprints the same address asadmin_email, nothing is pending. If no change was ever requested you will seeError: Could not get 'new_admin_email' option. Does it exist?, which is normal. The user list shows whether an administrator account also uses the old address. That account email is a separate fix (step 5). -
Change it in Settings → General. In the dashboard, open Settings → General, type the new address in Administration Email Address and click Save Changes. The page reloads with a blue notice that starts “There is a pending change of the administration email”. Open the new mailbox, find “[Site Title] New Admin Email Address” and click the link while logged in to the site. You land back on Settings → General with “Administration email updated.” Use a shared mailbox your team monitors, such as
ops@orwebmaster@, not one person’s inbox. -
If the confirmation email never arrives, set the address directly. WP-CLI writes the option without the confirmation step, so use it only for an address you control. Then remove the stale pending request:
wp option update admin_email ops@yourcompany.example wp option delete new_admin_email adminhashExpected output:
Success: Updated 'admin_email' option. Success: Deleted 'new_admin_email' option. Success: Deleted 'adminhash' option.A
Warning: Could not delete 'adminhash' option. Does it exist?line only means there was no pending request to clear. Don’t count on WordPress telling the old address about this change. If the previous owner should know, tell them yourself.No shell? In cPanel, open phpMyAdmin, select the site’s database, and run this on the SQL tab. Replace
wp_with the table prefix from$table_prefixinwp-config.php:UPDATE wp_options SET option_value = 'ops@yourcompany.example' WHERE option_name = 'admin_email'; DELETE FROM wp_options WHERE option_name IN ('new_admin_email', 'adminhash');phpMyAdmin reports “1 row affected” for the update and up to 2 rows for the delete. Zero rows on the update means the prefix is wrong.
-
Cancel a request sent to the wrong address. If you mistyped the address, click Cancel request next to the pending notice on Settings → General. WordPress deletes
new_admin_emailandadminhash, and the old link stops working. Then save the correct address and confirm it as in step 2. -
Fix the administrator account email if it also points at the old inbox. This is the address password resets go to. When you change your own address under Users → Profile, WordPress emails the new address a confirmation link and keeps the old one until you click it. When an administrator edits another user’s email, it changes at once. From the shell, for the account with ID 1 in step 1:
wp user update 1 --user_email=m.lavoie@yourcompany.exampleExpected output:
Success: Updated user 1.WordPress sends an email-change notice to the old address. Add--skip-emailonly when that old inbox belongs to someone who should not receive it. -
Check when the verification screen is next due. The timestamp is easier to read as a date:
wp eval 'echo wp_date( "Y-m-d H:i", (int) get_option( "admin_email_lifespan" ) ) . PHP_EOL;'Example output:
2027-04-19 10:37. A date in the past means the next administrator who logs in sees the screen. A date in 1970 means the option is missing. -
Change the interval only when you check the address another way. On a single client site, keep the default. A twice-yearly prompt is a cheap way to catch an address nobody owns any more. If your team audits
admin_emailacross many sites from one place, you can lengthen or turn off the prompt with a must-use plugin. That is a PHP file WordPress loads automatically fromwp-content/mu-plugins/, which can’t be switched off from the Plugins screen. Createwp-content/mu-plugins/admin-email-check.php:<?php // Show the administration email verification screen once a year instead of every 6 months. // Return 0 to stop the screen entirely. add_filter( 'admin_email_check_interval', function () { return 12 * MONTH_IN_SECONDS; } );MONTH_IN_SECONDSis 30 days in WordPress, so this is 360 days. Check that WordPress loads the file:wp plugin list --status=must-use --fields=name,statusExpected output includes a row
admin-email-check | must-use. A return value of 0 takes effect at the next login. Any other value applies the next time someone clicks The email is correct, and the date already stored in step 6 stays as it is until then.
Validate it works
Run these from the WordPress folder:
wp option get admin_email
wp option get adminhash
wp eval 'var_dump( wp_mail( get_option( "admin_email" ), "Admin address test", "Sent from " . home_url() ) );'
Example output:
ops@yourcompany.example
Error: Could not get 'adminhash' option. Does it exist?
bool(true)
You want the new address on the first line, no pending token on the second, and bool(true) on the third. bool(true) only means WordPress handed the message to its mailer. The test is done when the message is in the new inbox. Finally, log out and log in again as an administrator. If the date from step 6 is in the future, you go straight to the dashboard. Settings → General shows the new address and no pending notice.
Troubleshooting
- The link opens Settings → General but the address did not change. The token in the link no longer matches. Saving a different address creates a new token and replaces the old one, and a cancelled request breaks its link. Only the most recent email works.
- Saving again sends no new email. WordPress only sends the confirmation when the pending address changes. Saving the same pending address a second time does nothing. Click Cancel request, then save the address again to get a fresh email.
- The confirmation email never arrives. Check spam first, then whether WordPress can send mail at all. Diagnosing silent wp_mail() failures walks through the mail path. Until mail works, step 3 finishes the change.
- The old address still shows after a phpMyAdmin edit. A persistent object cache (Redis or Memcached) can keep serving the cached options. Run
wp cache flush, or purge the object cache from your caching plugin, then reload the page. - A client with the Administrator role keeps seeing the screen. Every user with
manage_optionssees it when the date passes. Give day-to-day editors the Editor role, or have the account owner click The email is correct once. - There is no Remind me later link. A plugin or theme returns 0 from the
admin_email_remind_intervalfilter. Search for it withgrep -rn "admin_email_remind_interval" wp-content/.
On multisite, each site keeps its own admin_email under its own Settings → General, with the same confirmation flow. The network address is separate. It sits under Network Admin → Settings → Network Admin Email, and update reports go to it. To set it from the shell, use wp site option update admin_email ops@yourcompany.example, then wp site option delete new_admin_email and wp site option delete network_admin_hash. Each should answer with a line like Success: Deleted 'new_admin_email' site option.
When this is the wrong approach
- You can’t log in at all. If no administrator can reach the dashboard, changing
admin_emailwon’t help, because password resets go to account addresses. Fix the account email first (step 5), then reset the password. - The address changed and nobody on your team did it. Treat it as a possible compromise, not a settings fix. Work through the WordPress hardening checklist after a site takeover before you trust the site again.
- You manage dozens of sites. Clicking through each dashboard doesn’t scale. Set the address in your deployment or provisioning step with
wp option update, and audit it on a schedule.
The WordPress documentation describes the field on the General Settings screen, and the developer reference covers the admin_email_check_interval filter.
Running WordPress that earns real money deserves an operator — Stack Harbor runs that stack under Enterprise WordPress; book an infrastructure consult.