• Resolved shilux

    (@shilux)


    Hi There Love the Plugin it works like a dream. Just need help with one thing, i want people who have accounts to login which work but when i want new users to register to access the site the registration link does not work, is there some code i can add to enable users to register

Viewing 1 replies (of 1 total)
  • Plugin Author Kevin Vess

    (@kevinvess)

    Hi, thanks for using Force Login – I’m glad you love it!

    Force Login was built to work with the standard WordPress register URLs. I suspect you’re using another plugin or a custom script to alter your sites registration URLs.

    If you’re using BuddyPress, then try adding the following code snippet to your theme’s functions.php file:

    /**
     * Bypass Force Login to allow for exceptions.
     * 
     * @return bool Whether to disable Force Login. Default false.
     */
    function my_forcelogin_bypass( $bypass ) {
      // add exception for buddypress login URLs
      if ( function_exists('bp_is_register_page') ) {
        if ( bp_is_register_page() || bp_is_activation_page() ) {
          $bypass = true;
        }
      }
      return $bypass;
    }
    add_filter('v_forcelogin_bypass', 'my_forcelogin_bypass', 10, 1);

    Or, if you’ve created a custom registration page; try the examples on this support topic: Use with custom registration page?.

Viewing 1 replies (of 1 total)

The topic ‘Registration Link not working.’ is closed to new replies.