Compatible with BuddyPress?
-
Has anyone used WP-force-login with BuddyPress?
I keep getting the wrong behavior with our site, which uses BuddyPress’ self-registration. The registration page works, but after the user receives an email with a link to confirm registration (i.e., /activate/) .. however, even added that to the whitelist still results in the plugin redirecting to the login screen.
The link in email is in following format:
https://mysite.com/activate/6ebdcb2dfdca23b2500457f82d5e6a7c/
So, I had added this to functions.php –
/**
* 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( ‘/activate/’ );
$whitelist[] = site_url( ‘/register/’ );
$whitelist[] = site_url( ‘/xmlrpc.php’ );
return $whitelist;
}
add_filter(‘v_forcelogin_whitelist’, ‘my_forcelogin_whitelist’, 10, 1);Can someone tell me if I goofed? Plugin works perfectly, but cannot use unless this is fixed ??
- The topic ‘Compatible with BuddyPress?’ is closed to new replies.