Issue with whitelist
-
Hello,
I am using the code you sugessted in the FAQ:
/** * 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( '/registration/' ); $whitelist[] = site_url( '/786-2/' ); return $whitelist; } add_filter('v_forcelogin_whitelist', 'my_forcelogin_whitelist', 10, 1); ?>
Hoever
$whitelist[] = site_url( '/786-2/' );
does not work.Also I need to add
$whitelist[] = site_url( '/registration/msg=3' );
etc. but that does not work.Can you have a wild card??? OR ever white list all except home page.
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Issue with whitelist’ is closed to new replies.