Whitelist for dummies
-
Hi,
Thanks for creating this plugin. I really love it.
The only thing that I can’t figure out is the whitelist option. I have a WordPress multisite. I’m trying to white list https://shop.easyorange.nl/dealers and entered the following to my functions.php.
Caution: I am an absolute noob when i comes to code…
/**
* Filter Force Login to allow exceptions for specific URLs.
*
* @return array An array of URLs. Must be absolute.
**/
function my_forcelogin_whitelist( $whitelist ) {
$whitelist[] = (‘https://shop.easyorange.nl/dealers’);
$whitelist[] = (‘www.drinkflesgroothandel.nl/easyorangeshop/dealers’);
return $whitelist;
}
add_filter(‘v_forcelogin_whitelist’, ‘my_forcelogin_whitelist’, 10, 1);I also tried:
$whitelist[] = site_url( ‘/dealers/’ );Both with no effect. I keep getting the login screen.
Thank you in advance for your help!
- The topic ‘Whitelist for dummies’ is closed to new replies.