Hi,
I can’t get the redirect to work. I am using a custom login page. Could that be the reason?
Thanks!
Thanks, I am already using a whitelist function. I realized I had to use urls with and without / for it to work. How would I include your code above in this?
function my_forcelogin_whitelist() {
return array(
site_url( '/' ),
site_url( '/about' ),
site_url( '/about/' ),
site_url( '/wp-login.php?action=lostpassword' ),
site_url( '/wp-login.php?action=rp' ),
site_url( '/login'),
site_url( '/login/')
);
}
add_filter('v_forcelogin_whitelist', 'my_forcelogin_whitelist', 10, 1);
Thanks!