{"id":1970,"date":"2020-04-10T18:56:15","date_gmt":"2020-04-10T09:56:15","guid":{"rendered":"https:\/\/cooss.net\/wordpress-email-change-notification-email\/"},"modified":"2025-03-16T17:34:13","modified_gmt":"2025-03-16T08:34:13","slug":"wordpress-email-change-notification-email","status":"publish","type":"post","link":"https:\/\/cooss.net\/en\/wordpress-email-change-notification-email\/","title":{"rendered":"WordPress Email Change Notification Email"},"content":{"rendered":"<p><\/p>\n\n\n<\/p>\n<p>By using WordPress, users can sign up, and when a member later changes their email address, a confirmation email is sent under the name of WordPress.<\/p>\n<p>\n\n\n<p><\/p>\n<p>\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"856\" height=\"394\" src=\"http:\/\/blog.cooss.net\/wp-content\/uploads\/2020\/04\/email\ubcc0\uacbd.jpg\" alt=\"\" title=\"\">\t\t\t\t\t\t\t\t\t\t\t<\/p>\n<h3>Issues<\/h3>\n<p>However, the sender&#8217;s name is also set to WordPress,<\/p>\n<p>and the email address is sent as the default value of wordpress@[site address], which is not even used.<\/p>\n<p>This was unsatisfactory, so I rummaged around to find out where it was being sent from.<\/p>\n<h3>Where is it sent from?<\/h3>\n<p>It is not from the wp-members plugin installed for managing member registrations.<\/p>\n<p>This plugin allows you to set the sender&#8217;s email address and site name, and it was confirmed that emails are sent as configured.<\/p>\n<p>I found the following content in \/wp-includes\/users.php.<\/p>\n<p>\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"1024\" height=\"444\" src=\"http:\/\/blog.cooss.net\/wp-content\/uploads\/2020\/04\/wp-mail01-1024x444.jpg\" alt=\"\" title=\"\">\t\t\t\t\t\t\t\t\t\t\t<\/p>\n<p>Found it!!!<\/p>\n<p>It is sent as predetermined without any settings, and since it is in the WordPress core folder, it is not sent from a specific plugin.<\/p>\n<h3>Is there a filter defined?<\/h3>\n<p>A filter is defined as follows.<\/p>\n<p>\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"875\" height=\"269\" src=\"http:\/\/blog.cooss.net\/wp-content\/uploads\/2020\/04\/wpmail02.jpg\" alt=\"\" title=\"\">\t\t\t\t\t\t\t\t\t\t\t<\/p>\n<h3>Solution<\/h3>\n<p>Therefore, I added the following line to the function.php in the theme folder to prevent the email from being sent.<\/p>\n<p>add_filter(&#8216;send_email_change_email&#8217;,function(){return false;},10,3);<\/p>\n<p><\/p>\n<p>Resolved !!<\/p>","protected":false},"excerpt":{"rendered":"<p>By using WordPress, users can sign up, and when a member later changes their email address, a confirmation email is sent under the name of WordPress. Issues However, the sender&#8217;s name is also set to WordPress, and the email address is sent as the default value of wordpress@[site address], which is not even used. This [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1456,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1970","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/posts\/1970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/comments?post=1970"}],"version-history":[{"count":0,"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/posts\/1970\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/media\/1456"}],"wp:attachment":[{"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/media?parent=1970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/categories?post=1970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/tags?post=1970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}