Created
July 11, 2019 05:26
-
-
Save adamrosloniec/230c5346e7a7505429b0d47de8f4291c to your computer and use it in GitHub Desktop.
WordPress - Update admin in SQL, without email notification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function update_admin_email() { | |
global $wpdb; | |
$wpdb->query("UPDATE `wp_options` SET `option_value` = 'admin@test.local' WHERE `option_name` = 'admin_email'"); | |
} | |
add_action('init', 'update_admin_email'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment