{"id":2751,"date":"2026-10-20T08:36:22","date_gmt":"2026-10-20T07:36:22","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/geodirectory-user-roles-and-wp-admin-access\/"},"modified":"2026-10-20T08:39:01","modified_gmt":"2026-10-20T07:39:01","slug":"geodirectory-user-roles-and-wp-admin-access","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/geodirectory-user-roles-and-wp-admin-access\/","title":{"rendered":"GeoDirectory user roles and how to keep users out of wp-admin"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">GeoDirectory has no user roles of its own and never changes a user&#8217;s role. People who register get the WordPress default role from Settings &gt; General &gt; New User Default Role, which is Subscriber unless you have changed it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Listing owners don&#8217;t need the WordPress backend. They add listings with the add listing form and edit or delete them from the front end, where GeoDirectory only shows the edit and delete links to the listing&#8217;s author (and to admins). See <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/how-to-allow-users-to-add-and-edit-their-geodirectory-listings\/\">How to allow users to add and edit their GeoDirectory listings<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Block wp-admin for chosen roles<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to GeoDirectory &gt; Settings &gt; General.<\/li>\n\n\n\n<li>In Restrict wp-admin, select the roles that should never reach the backend. Subscriber is selected by default.<\/li>\n\n\n\n<li>Save the settings.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">A logged in user with one of those roles who tries to open wp-admin is sent to your home page. Administrators are never blocked. AJAX requests still go through, so the front end forms keep working.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To hide the WordPress toolbar from these users as well, see <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/code-snippets\/how-do-i-remove-the-wp-admin-bar-for-non-admin-users\/\">How do I remove the WP Admin bar for non-admin users?<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What other users can see<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Published listings are public, and GeoDirectory has no setting to hide one member&#8217;s listings from other members. What you can control is the author page that lists a user&#8217;s listings: in Places &gt; Settings &gt; General, under Author page, set Authors posts to Private. It is an advanced setting, so click Show Advanced if it isn&#8217;t visible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GeoDirectory has no user roles of its own and never changes a user&#8217;s role. People who register get the WordPress default role from Settings &gt; General &gt; New User Default Role, which is Subscriber unless you have changed it. Listing owners don&#8217;t need the WordPress backend. They add listings with the add listing form and [&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-2751","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\/2751","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=2751"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2751\/revisions"}],"predecessor-version":[{"id":2861,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2751\/revisions\/2861"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2751"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2751"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}