Problems with Whitelist
-
I’m trying to whitelist a group of sites but running into some problems. Below is the code I have in my functions.php. The home page (“/”) whitelists fine, but none of the others do. I keep getting redirected. Am I missing something?
/**
* Filter Force Login to allow exceptions for specific URLs.
*
* @return array An array of URLs. Must be absolute.
**/
function my_forcelogin_whitelist( $whitelist ) {
$whitelist[] = site_url( ‘/register-2/’ );
$whitelist[] = site_url( ‘/’ );
$whitelist[] = site_url( ‘/features/‘ );
$whitelist[] = site_url( ‘/faqs/’ );return $whitelist;
}
add_filter(‘v_forcelogin_whitelist’, ‘my_forcelogin_whitelist’, 10, 1);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Problems with Whitelist’ is closed to new replies.