Hi, thanks for using Force Login!
The default WordPress registration should already by whitelisted by Force Login; so I assume you’re using another plugin for this unique user registration process?
[…] which one of the four methods would work best [to whitelist our verification link?]
I think you want method 4 since the other methods check for a query string and your example URL uses pathnames/directories.
Also, is there a way to redirect to login after verification?
Probably– but depending on whether or not you’re using a plugin for this new user verification process, that will determine how you hook into the functionality to apply your redirect.
Hi there,
Thanks for the reply – we use nothing strange here… WordPress Multisite, BuddyPress, BBPress. Registration was done from the standard WP registration screen on the back end.
So Standard WP functionality. I will try method 4 to see if that fixes it.
Kind regards
Francois Wessels
Hi, thanks for clarifying what plugins you’re using.
BuddyPress adds and changes functionality in your WordPress install, including how it handles user registration.
Now that I know you’re using that plugin, I suggest you use the BuddyPress conditional tags to bypass Force Login for its activation page.
For example:
/**
* Bypass Force Login to allow for exceptions.
*
* @param bool $bypass Whether to disable Force Login. Default false.
* @return bool
*/
function my_forcelogin_bypass( $bypass ) {
if ( function_exists( 'bp_is_activation_page' ) && bp_is_activation_page() ) {
$bypass = true;
}
return $bypass;
}
add_filter( 'v_forcelogin_bypass', 'my_forcelogin_bypass' );