When I enable restrict all pages option, plugin always redirect to the login/registration page. That is ok but I would like to allow specific pages for the logged out users. How can I allow individual pages with the restrict all pages option enabled?
When I enable restrict all pages option, plugin always redirect to the login/registration page. That is ok but I would like to allow specific pages for the logged out users. How can I allow individual pages with the restrict all pages option enabled?
Hello Vinicius,
Thank you for purchasing our plugin,
Certainly, you can add a PHP code snippet to your site to allow specific pages.
A PHP snippet can be added to functions.php, or by following our guide here: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/
In the above code, you can replace 1234, 4567 with page IDs that you want to allow.
The ID of a page is the number in the page URL when you are editing it.
For example if I edit a page and I see this:
The ID of this page is 1136 as that is what we see in the URL.
Let me know if that works for you,
Kind regards,
Stefan