Registration Page not working again
-
Hi guys
Before I dive into the issue, I must just thank you for all the support in the past. I’ve resolved all issues in my sandbox site, but now I’m picking up problems in the main site.
Here is the description of my problem and the process I followed.
1) The user is forced to log in with the Force Login plugin.
2) I used custom php code to redirect the user to a custom login page I created with elementor
3) Built a custom registration page with Buddybuilder pro
4) Created a blank page for called ‘Registration’
5) Linked that page in Buddypress as the registration page
6) Bypassed force login with custom code to allow the registration and password reset page with the following code:function my_forcelogin_bypass( $bypass) { // add exception for BuddyPress URLs if ( function_exists( 'bp_is_register_page' ) ) { if ( /*bp_is_register_page() ||*/ is_page('registration')|| bp_is_activation_page() ||is_page('reset-password') ) { $bypass = true; } } return $bypass; } add_filter( 'v_forcelogin_bypass', 'my_forcelogin_bypass' ); // // Custom Registration URL************************************************** function my_registration_page( $register_url ) { return site_url( '/registration/' , 'login-page' ); } add_filter( 'register_url', 'my_registration_page', 10, 1 );
Now what happens is that when the user gets to the site they are met with my custom login page. If I click on reset password, they are directed to the custom password reset page. If I click on Register, the page loads (so the bypass is working), but I’m met with a blank standard WordPress page.
Any idea what I’m doing wrong?
The page I need help with: [log in to see the link]
- The topic ‘Registration Page not working again’ is closed to new replies.