Where is the value for
$email = get_option('admin_email');
How can I change it?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
In Wordpress backend go to: Settings > General and the field 'Email Address'.
Or in php: update_option('admin_email', 'email@example.com'); https://codex.wordpress.org/Function_Reference/update_option
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: