{"id":125,"date":"2025-02-06T12:40:04","date_gmt":"2025-02-06T12:40:04","guid":{"rendered":"https:\/\/documentation.userswp.io\/article\/how-to-send-admin-email-notifications-to-a-different-address\/"},"modified":"2025-03-26T17:02:22","modified_gmt":"2025-03-26T17:02:22","slug":"how-to-send-admin-email-notifications-to-a-different-address","status":"publish","type":"gd_place","link":"https:\/\/userswp.io\/documentation\/article\/code-snippets\/how-to-send-admin-email-notifications-to-a-different-address\/","title":{"rendered":"How to Send Admin Email Notifications to a Different Address?"},"content":{"rendered":"\n<p>By default, UsersWP sends admin email notifications to the WordPress admin email address. You can, however, use a code snippet to change this behavior.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-blockstrap-blockstrap-widget-alert d-flex align-items-center fade show alert alert-info mb-3\" role=\"alert\"><span class=\"fas fa-info-circle me-2\"><\/span><span class=\"flex-grow-1\">We recommend using the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/useful-plugins\/code-snippets-plugin\/\" target=\"_blank\">Code Snippets<\/a> plugin to add snippets to your site.<\/span><\/div>\n\n\n\n<p>To send admin email notifications to an email address <strong>other than <\/strong>the default WP admin email address, simply use the following code snippet:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">add_filter(&#039;uwp_send_email_to&#039;, &#039;uwp_send_email_to_cb&#039;, 10, 4);\nfunction uwp_send_email_to_cb($to, $email_name, $email_vars, $is_admin){\n\tif($is_admin){\n\t\treturn &#039;myemail@mysite.com&#039;;\n\t\t} \n\treturn $to;\n}<\/code><\/pre>\n\n\n\n<p><br>Be sure to change the email address in the snippet to that of the intended recipient.\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, UsersWP sends admin email notifications to the WordPress admin email address. You can, however, use a code snippet to change this behavior.&nbsp; To send admin email notifications to an email address other than the default WP admin email address, simply use the following code snippet:&nbsp; Be sure to change the email address in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[191,192],"article\/categories":[40,7],"class_list":["post-125","gd_place","type-gd_place","status-publish","hentry","gd_place_tags-email-notifications","gd_place_tags-admin-emails","gd_placecategory-code-snippets","gd_placecategory-tips-tricks-more"],"_links":{"self":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":0,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/125\/revisions"}],"wp:attachment":[{"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/media?parent=125"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/tags?post=125"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/userswp.io\/documentation\/wp-json\/wp\/v2\/article\/categories?post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}