{"id":2764,"date":"2026-10-20T08:36:23","date_gmt":"2026-10-20T07:36:23","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/approve-edited-listings-before-publishing\/"},"modified":"2026-10-20T08:39:19","modified_gmt":"2026-10-20T07:39:19","slug":"approve-edited-listings-before-publishing","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/core-features\/approve-edited-listings-before-publishing\/","title":{"rendered":"Can edited listings be approved before the changes go live?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Not with a setting. GeoDirectory moderates new listings only: New listing default status at GeoDirectory &gt; Settings &gt; General decides whether a new listing is published straight away or waits as Pending. When the owner edits a listing that is already published, it keeps its status and the changes show as soon as they save.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It works this way because sending a published listing back to Pending takes it off the site. Its page and links stop working until you approve it again, which hurts visitors and search engines.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Get an email when a listing is edited<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to GeoDirectory &gt; Settings &gt; Emails &gt; Admin emails.<\/li>\n\n\n\n<li>Under Listing edited, tick Enable email.<\/li>\n\n\n\n<li>Edit the subject and body if you like, and save.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">You then get an email each time a user edits a listing (not when an admin does), so you can check the change and fix or unpublish it. To send these emails to another address, see <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/code-snippets\/geodirectory-admin-notification-emails-changing-the-recipient-email-address-or-sending-to-multiple-email-addresses\/\">changing the recipient of admin notification emails<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Force edits back to Pending<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you accept that edited listings go offline until approved, this snippet sets a published listing to Pending whenever someone other than an admin saves it from the front end. Add it with the Code Snippets plugin or in your child theme&#8217;s functions.php.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">\/**\n * Send published GeoDirectory listings back to Pending when a non-admin edits them.\n *\/\nfunction my_gd_edits_need_approval( $post_data, $is_revision ) {\n\tif ( ! current_user_can( &#039;manage_options&#039; ) &amp;&amp; ! empty( $post_data&#091;&#039;ID&#039;&#093; ) &amp;&amp; get_post_status( $post_data&#091;&#039;ID&#039;&#093; ) === &#039;publish&#039; ) {\n\t\t$post_data&#091;&#039;post_status&#039;&#093; = &#039;pending&#039;;\n\t}\n\n\treturn $post_data;\n}\nadd_filter( &#039;geodir_ajax_update_post_data&#039;, &#039;my_gd_edits_need_approval&#039;, 10, 2 );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Approve the listing again by publishing it in the backend. For the rest of the moderation workflow see <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/guide-to-moderating-listings\/\">Guide to moderating listings<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Not with a setting. GeoDirectory moderates new listings only: New listing default status at GeoDirectory &gt; Settings &gt; General decides whether a new listing is published straight away or waits as Pending. When the owner edits a listing that is already published, it keeps its status and the changes show as soon as they save. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[421,213],"class_list":["post-2764","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-core-features","gd_placecategory-extensions-features"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2764","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=2764"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2764\/revisions"}],"predecessor-version":[{"id":2873,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2764\/revisions\/2873"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2764"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2764"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}