exceptions for certain page
-
Hi great plugin. It tried to get access to lost password page but can’t get it to work but i can get access to another page, kopvilkor. Any sugestions how to get it to work. Running wp 4.2.2 and woocommerce
url: https://www.thebrandconceptwebshop.se/demo1/wp-login.php
/**
* Filter Force Login to allow exceptions for specific URLs.
*
* @return array An array of URLs. Must be absolute.
**/
function my_forcelogin_whitelist() {
return array(
site_url( ‘/index.php/my-account/lost-password/’ ),
site_url(‘/index.php/kopvilkor/’)
);
}
add_filter(‘v_forcelogin_whitelist’, ‘my_forcelogin_whitelist’, 10, 1);
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘exceptions for certain page’ is closed to new replies.