Cannot get bypass to work
-
I am trying to add a bypass so that my users can open the registration form, but when I add it to functions.php, it breaks my website. Any help please! Also, this is a multi-site installation:
function my_forcelogin_bypass( $bypass ) { // Get visited URL without query string $url_path = preg_replace('/\?.*/', '', $_SERVER['REQUEST_URI']); // Allow URL if ( '/registration/' === $url_path ) { $bypass = true; } return $bypass; } add_filter( 'v_forcelogin_bypass', 'my_forcelogin_bypass' );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Cannot get bypass to work’ is closed to new replies.