Restrict pages for un regisered users

Hello, can i get help to get code to restrict specific pages for unregistered users please. to be redirected to register. thank you

Hi,

You can do that using the HivePress Memberships extension or by using this code snippet Hide the listing pages from non-registered users (redirect to login form) #hivepress #listings ยท GitHub