Last Updated on September 29, 2020

Here are some additional advanced resources for WordPress.

Force Site Admin without Email Verification

In recent WordPress updates, WordPress now requires email verification before you can change the site admin.  If you temporarily add the following code to the active theme’s functions.php file it will disable the verification step and you can update the email.  Once you update the email, be sure to remove the code from the functions.php file.

How do I change the admin email from without email confirmation

[code]

remove_action( ‘add_option_new_admin_email’, ‘update_option_new_admin_email’ );
remove_action( ‘update_option_new_admin_email’, ‘update_option_new_admin_email’ );

/**
* Disable the confirmation notices when an administrator
* changes their email address.
*
* @see http://codex.wordpress.com/Function_Reference/update_option_new_admin_email
*/
function wpdocs_update_option_new_admin_email( $old_value, $value ) {

update_option( ‘admin_email’, $value );
}
add_action( ‘add_option_new_admin_email’, ‘wpdocs_update_option_new_admin_email’, 10, 2 );
add_action( ‘update_option_new_admin_email’, ‘wpdocs_update_option_new_admin_email’, 10, 2 );[/code]

mattis, pulvinar dapibus leo.

WordPress Multisite