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

    (@kevinvess)

    Force Login doesn’t whitelist any of the Buddypress pages out-of-the-box, but you can whitelist those pages by including the following code to your theme’s functions.php file:

    /**
     * Filter Force Login to allow exceptions for specific URLs.
     *
     * @return array An array of URLs. Must be absolute.
     **/
    function my_forcelogin_whitelist($whitelist) {
      // whitelist buddypress login URLs
      if( function_exists('bp_is_register_page') ) {
        if( bp_is_register_page() || bp_is_activation_page() ) {
          $whitelist[] = site_url($_SERVER['REQUEST_URI']);
        }
      }
      return $whitelist;
    }
    add_filter('v_forcelogin_whitelist', 'my_forcelogin_whitelist', 10, 1);
Viewing 1 replies (of 1 total)
  • The topic ‘Register link doesn't do anything Help with BuddyPress’ is closed to new replies.