{"id":2353,"date":"2026-10-20T08:32:18","date_gmt":"2026-10-20T07:32:18","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/change-add-listing-login-and-review-messages\/"},"modified":"2026-10-20T08:40:20","modified_gmt":"2026-10-20T07:40:20","slug":"change-add-listing-login-and-review-messages","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/change-add-listing-login-and-review-messages\/","title":{"rendered":"How to change the &#8220;You must login to post&#8221; and &#8220;may need to be reviewed&#8221; messages"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">You can change the add listing login message from the GD > Add Listing block or shortcode. The message shown after a listing is submitted needs either a translation of that one string or a small code snippet.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The &#8220;You must login to post.&#8221; message<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Logged out visitors see this message on the add listing page. The GD > Add Listing block has a Login Message setting in its Login group. Type your own text there and update the page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your add listing page uses the shortcode, add the <code>login_msg<\/code> attribute:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&#091;gd_add_listing login_msg=&quot;Please create an account below to get started.&quot;&#093;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The same Login group has a &#8220;Show the login and register links if required&#8221; option, so visitors who have no account yet get a link to register.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The &#8220;Post received, your listing may need to be reviewed&#8221; message<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GeoDirectory shows this after a new listing is saved with a status other than published, for example when new listings are set to pending review. When an edit to an existing listing is not live yet, users see &#8220;Update received, your changes may need to be reviewed before going live.&#8221; instead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To change only the wording, translate that one string in the GeoDirectory core plugin. <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/translations\/how-to-change-just-one-language-string\/\">How to change just one language string<\/a> walks through it with Loco Translate.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you would rather use code, the <code>geodir_ajax_save_post_message<\/code> filter lets you replace the message. This snippet changes it only for new listings that still need review:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-php\">add_filter( &#039;geodir_ajax_save_post_message&#039;, &#039;my_gd_review_message&#039;, 10, 2 );\nfunction my_gd_review_message( $message, $post_data ) {\n\t$is_new  = empty( $post_data&#091;&#039;post_parent&#039;&#093; );\n\t$is_live = in_array( $post_data&#091;&#039;post_status&#039;&#093;, geodir_get_publish_statuses( $post_data ) );\n\n\tif ( $is_new &amp;&amp; ! $is_live ) {\n\t\t$message = &#039;Thanks! Your listing will need to be reviewed before it goes live.&#039;;\n\t}\n\n\treturn $message;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add it with the <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/useful-plugins\/code-snippets-plugin\/\">Code Snippets plugin<\/a> or your child theme&#8217;s functions.php. Your text replaces the whole message, including the preview link, so add one back if you want it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can change the add listing login message from the GD > Add Listing block or shortcode. The message shown after a listing is submitted needs either a translation of that one string or a small code snippet. The &#8220;You must login to post.&#8221; message Logged out visitors see this message on the add listing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[211,432],"class_list":["post-2353","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-tips-tricks-more","gd_placecategory-how-tos"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2353","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=2353"}],"version-history":[{"count":2,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2353\/revisions"}],"predecessor-version":[{"id":2646,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2353\/revisions\/2646"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2353"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2353"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}