How can i lock entire wplms site with exceptions to
1. Woocommerce related pages , cart/checkout/thankyou page
I used https://wordpress.org/plugins/wp-force-login/ to add whitelist and add exceptions and block site however Wplms pages such as /all-courses , /courses , /members etc.. are not getting blocked??
I tested default wplms site lock function as well however its kind of useless without any means of customization.
This reply has been marked as private.
This reply has been marked as private.
Please let me know if you are using the wplms site lock feature present in the wplms->miscellaneous->site lock.
There is a filter present in there which can exclude the pages from the site lock.
Let me know if you are using this feature or something else.
currently im not using default wplms site lock
what i want to achieve is block all and only exclude cart/checkout/thankyou page
I used those 2 plugins to achieve it (but the courses page is not blocked)
https://wordpress.org/plugins/buddypress-members-only/
https://wordpress.org/plugins/wp-force-login/
please show me how to exclude pages using wplms site lock
/cart
/checkout
/thank-you ignoring query strings e.g /thank-you/?order=595&key=wc_order_58b96d94a6e37
If you use the wplms site lock feature then (by custom code you can exclude the pages) there are two filters added in it using which the pages can be excluded.
1) wplms_site_lock_exclusions: which accepts pages array and you can add the page ids in it and return it. Then those pages will be exluded from the site lock.
2) wplms_bp_page_site_lock_bypass: which is used for bypassing the buddypress directory pages, simply check if the page is a buddypress directory page then return 0 otherwise return 1.
Let me know if you need the code.
Dear H.K. Latiyan ,
i required this code for exclusion of some pages from site lock, please provide me in detail where i have to apply as i am not developer , its urgent.
Thanks and regards
Vishal Kumar Varshney
@vishal: Please refer the reply here:
https://wplms.io/support/forums/topic/site-lock-login/page/2/
Please do not duplicate the topics and reply on your own topics.