{"id":4260,"date":"2024-01-03T01:50:17","date_gmt":"2024-01-03T00:50:17","guid":{"rendered":"https:\/\/www.knowboard.de\/?p=4260"},"modified":"2024-01-10T02:48:22","modified_gmt":"2024-01-10T01:48:22","slug":"force-change-admin-email-and-current-user-email-without-notification-via-functions-php","status":"publish","type":"post","link":"https:\/\/www.knowboard.de\/force-change-admin-email-and-current-user-email-without-notification-via-functions-php\/","title":{"rendered":"Force change admin email and current user email without notification via functions.php"},"content":{"rendered":"\n

Add this and reload the page, then remove it from functions.php. This is useful if your server does not send emails 8yet) or ayou dont want toe prior admin to know about your changes.<\/p>\n\n\n\n

\/\/force update admin email\nupdate_option( 'admin_email', 'info@enym.com' );\nupdate_option( 'new_admin_email', 'info@enym.com' );\n\n\/\/force update current user email\n$args = array(\n    'ID'         => $current_user->id,\n    'user_email' => 'info@enym.com'\/\/esc_attr( $_POST['user_email'] )\n);\nwp_update_user( $args );<\/code><\/pre>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

Add this and reload the page, then remove it from functions.php. This is useful if your server does not send emails 8yet) or ayou dont want toe prior admin to know about your changes.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-4260","post","type-post","status-publish","format-standard","hentry","category-allgemein","entry","no-media"],"_links":{"self":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts\/4260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/comments?post=4260"}],"version-history":[{"count":2,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts\/4260\/revisions"}],"predecessor-version":[{"id":4269,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts\/4260\/revisions\/4269"}],"wp:attachment":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/media?parent=4260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/categories?post=4260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/tags?post=4260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}