Plugin Support
Robert
(@robertnextendweb)
Hi @dblooper!
Go to Nextend Social Login > Global Settings > General tab > Membership:
https://nextendweb.com/nextend-social-login-docs/global-settings/
set this to “Disabled” and that should solve this problem.
But I still need users to be able to register. I just need 2 different buttons, one for only registration and one for only login.
Plugin Support
Robert
(@robertnextendweb)
No matter where you press the social login button, it can be used for registering and login. So if you don’t want users to register in your login form, or vica versa, then you will need to do so with custom coding.
Please note that we cannot provide support for custom coding and the problems that come as a result of these custom codes.
But basically what you should do is that you should be able to distinguish the register form from the login form according to some logic. For this, you could, for example, publish the buttons manually with a shortcode in a way that you set a unique tracker data for the login form, based on which you will know that it is a login form:
https://nextendweb.com/nextend-social-login-docs/backend-developer/#trackerdata
and you could hook a custom function to the “nsl_is_register_allowed” filter (you can find its parameters in the documentation above), and based on the tracker data, it would return the original value, or false (if it is false, the registration will be blocked).
Besides this, the:
- nsl_disabled_register_redirect_url
- nsl_disabled_register_error_message
filters can be used to redirect the user somewhere else after they are blocked from registering, or to override the error message.