Hello spotdiecontrole,
Please try adding this line to your child themes functions.php file
add_filter('ms_frontend_handle_registration', '__return_false');
this will tell Membership to not handle registration. Then where you have links to registration on your site change them to right one.
Let me know if this works for you.
kind regards,
Kasia
Hi Kasia
I still get the registration form. Is it also possible to add this code with code snippet to get this work?
I add this line to code snippet but still no result. Please help 🙁
Hello @spotdiecontrole, I hope you are doing well.
To stop the “Registration” link on the wp-admin redirecting to the Membership 2 registration page, please edit the file: membership/app/controller/class-ms-controller-frontend.php.
On the line 112 change this code:
self::$handle_registration = apply_filters(
'ms_frontend_handle_registration',
true
);
To this :
self::$handle_registration = apply_filters(
'ms_frontend_handle_registration',
false
);
This will stop the redirection and users will be able to register with WordPress default registration method.
Let me know if you have any further questions!
Cheers,
Nastia
Hi Nastia
I changed the line from true to false. But still there is the register form…
Is there a way to send an activation link to new users. And when they press the activation link than the account will be enabled?
Thanks for you good replyzz
You can check this link and you will see the user registration form still appear
http://www.spotdiecontrole.nl/register/
PLEASE HELP
I changed the code to false but the registration page still appear. How is this possible?
Please help me out with this i beg 😉
You can check this link and you will see the user registration form still appear
http://www.spotdiecontrole.nl/register/
Hello @spotdiecontrole, I hope all is well!
The code above, will not redirect users from the /wp-admin/ page to the Membership registration page. Instead, while users are on /wp-admin/ page and click on register button they are redirected to the WordPress default registration, please see the link bellow:
yoursite.com/wp-login.php?action=register
To use the default WordPress, please redirect users to the above link. Once a user is registered, redirect to a page when he or she can sign up for a membership. For redirect plugin, you can try the Peter’s Login Redirect plugin
I hope this will help!
Kind regards,
Nastia