{"id":4860563,"date":"2014-04-29T08:50:28","date_gmt":"2014-04-29T08:50:28","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/more-than-one-email-address-1\/"},"modified":"2016-08-21T19:50:56","modified_gmt":"2016-08-21T19:50:56","slug":"more-than-one-email-address-1","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/more-than-one-email-address-1\/","title":{"rendered":"More than one email address"},"content":{"rendered":"<p>Would it be possible to add an option to enable two email addresses?<\/p>\n<p>I want one to admin and one to editor, if possible!<\/p>\n<p>Would something like this work?<\/p>\n<pre><code>\/\/ send multiple update emails\nfunction XYZ_filter_auto_update_email( $email ) {\n\n$admin_email = get_bloginfo(&#039;admin_email&#039;) ;\n$extra_email = get_option(&#039;extra_email&#039;) ; \/\/ this is an added entry field within the plugin options form\n\n$recipients = array($admin_email,$extra_email);\n\n$email[&#039;to&#039;] = $recipients;\nreturn $email;\n}\nadd_filter( &#039;auto_core_update_email&#039;, &#039;XYZ_filter_auto_update_email&#039;, 1 );<\/code><\/pre>\n<p>https:\/\/wordpress.org\/plugins\/background-update-notification-email-address\/<\/p>\n","protected":false},"template":"","class_list":["post-4860563","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4860563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4860563\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4860563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}