redirect script stopped working
-
I have always had no trouble with your force login bypass in order for the registration page to come up and not go back to login page. Recently, wordpress auto updated to 6.0 and it broke it, that and/or I updated my server to business account on godaddy. Either way… It stopped working, I have tried everything and it wont work anymore, I even downgraded my wordpress to the last known compatible version you list, and still nothing. It just doesn’t work anymore, I have used it for years. I don’t know what to do ??
This is the script I use in my functions.php file:
function my_forcelogin_bypass( $bypass, $visited_url ) { // Allow all single posts if ( is_single() ) { $bypass = true; } // Allow these absolute URLs $allowed = array( home_url( '/register-now/' ), home_url( '/mmtb-festivals/' ), home_url( '/Activate/' ), ); if ( ! $bypass ) { $bypass = in_array( $visited_url, $allowed ); } return $bypass; } add_filter( 'v_forcelogin_bypass', 'my_forcelogin_bypass', 10, 2 ); /////
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘redirect script stopped working’ is closed to new replies.