4

Where is the value for admin_email set?

$email = get_option('admin_email');

How can I change it?

2 Answers 2

6

In Wordpress backend go to: Settings > General and the field 'Email Address'.

Or in php: update_option('admin_email', '[email protected]'); https://codex.wordpress.org/Function_Reference/update_option

0
1

As of 4.9 there is a requirement the user send an outbound email in order to change the admin email from the backend. If you can't send outbound email, you can't change the email without custom code. This plugin restores functionality to pre-4.9:

Change Admin Email

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.