Support » Plugin: Force Login » Verification in WordPress Multisite

  • Resolved franwess

    (@franwess)


    Hi there,

    What would be the best way to whitelist the verification link that gets sent out to new user on WordPress multisite.

    I have checked the wiki but unsure which one of the four methods would work best.

    Also, is there a way to redirect to login after verification?

    Kind regards
    Francois Wessels

Viewing 4 replies - 1 through 4 (of 4 total)
  • Sorry, URL usually looks something like https://mydomain.co.za/activate/62945c5aa9343597

    Plugin Author Kevin Vess

    (@kevinvess)

    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

    Plugin Author Kevin Vess

    (@kevinvess)

    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' );
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.