To access a certain page, make login/sign-up required

Hi Team,

I want to make two pages (vendors & vendor listings) restricted from non-logged-in users.

When an unregistered user visits a page, the desired action is to redirect them to the login page. This prompts them to either log in or sign up in order to gain access to the page and its contents.

How can I set this up?

Thanks :slight_smile:

Hi! Here it is: Hide the listing pages from non-registered users (redirect to login form) #hivepress #listings ยท GitHub and add this in the code to the list what you want to restrict: vendor_view_page

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.