Activation link won’t work
-
I’m not using a custom registration page, but the “register” link would just redirect to the login page. I fixed that with the following code:
——————–
/**
* Filter Force Login to allow exceptions for specific URLs.
*
* @param array $whitelist An array of URLs. Must be absolute.
* @return array
*/
function my_forcelogin_whitelist( $whitelist ) {
$whitelist[] = home_url( ‘/register/’ );
return $whitelist;
}
add_filter( ‘v_forcelogin_whitelist’, ‘my_forcelogin_whitelist’ );
———————However, when someone registers and clicks the activation link, they just get redirected to the login screen without activation. I’ve tried adding a second “$whitelist[]=” line with “/activate/” and another with “wp-activate.php” but neither works. How can I get the activation link to work?
Thanks. Awesome plugin, BTW.
- The topic ‘Activation link won’t work’ is closed to new replies.