I find myself using the WP CLI option to change the WordPress Admin email address more and more, but I keep forgetting the format, so I’m logging it here just for me.
But, feel free to use it as well 😉
Time needed:Â 1 minute.
Updating the WordPress site main email address via WP CLI goes like this:
- Log into your WordPress server SSH
I’m assuming you’ve already connected to your site via the terminal before, but if you haven’t, check your hosting company’s documentation on how to do that
- Update what needs updating
The following command will update your WordPress site email address.
wp option update admin_email
admin
@example.com - Hit Enter
You have now changed the main admin email address, the one you can find under Settings. You will not receive an email requesting you to confirm the update, this method makes it final instantly.
Leave a Reply