{"id":940,"date":"2025-03-24T14:28:05","date_gmt":"2025-03-24T14:28:05","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/geodirectory-admin-notification-emails-changing-the-recipient-email-address-or-sending-to-multiple-email-addresses\/"},"modified":"2025-04-03T15:24:25","modified_gmt":"2025-04-03T14:24:25","slug":"geodirectory-admin-notification-emails-changing-the-recipient-email-address-or-sending-to-multiple-email-addresses","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/code-snippets\/geodirectory-admin-notification-emails-changing-the-recipient-email-address-or-sending-to-multiple-email-addresses\/","title":{"rendered":"GeoDirectory Admin Notification Emails: Changing the Recipient Email Address or Sending to Multiple Email Addresses"},"content":{"rendered":"\n<p>By Default, GeoDirectory will send admin emails to the email address set under <strong>WordPress<\/strong> <strong>Settings > General >\u00a0Administration Email Address.<\/strong>\u00a0\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Changing the Admin Notifications Email Address&nbsp;<\/h2>\n\n\n\n<p>If, for some reason, you need GeoDirectory notification emails to go to a different address you can <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/useful-plugins\/code-snippets-plugin\/\">add a code snippet<\/a> to set the email address you want it to go to:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">add_filter(&#039;geodir_admin_email&#039;,&#039;_my_new_gd_admin_email&#039;);\nfunction _my_new_gd_admin_email( $admin_email ){\n    return &quot;my-new-admin-email@my-domain.com&quot;;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Sending Notification Emails to Multiple Addresses<\/h2>\n\n\n\n<p>On the other hand, if you need to send the GeoDirectory admin notification emails to more than one email address, you can use the following code snippet:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">add_filter(&#039;geodir_admin_email&#039;,&#039;_my_new_gd_admin_email&#039;);\nfunction _my_new_gd_admin_email( $admin_email ){\n\treturn &quot;my-new-admin-email@my-domain.com, 2ndemail@my-domain.com, 2rdemail@my-domain.comm&quot;; \n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>By Default, GeoDirectory will send admin emails to the email address set under WordPress Settings > General >\u00a0Administration Email Address.\u00a0\u00a0 Changing the Admin Notifications Email Address&nbsp; If, for some reason, you need GeoDirectory notification emails to go to a different address you can add a code snippet to set the email address you want it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[211,433],"class_list":["post-940","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-tips-tricks-more","gd_placecategory-code-snippets"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=940"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/940\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=940"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=940"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}