Plugin Support
Robert
(@robertnextendweb)
Hi @temasis
We register accounts with the default role set in WordPress ( WordPress > Settings > General > New User Default Role), or in the Pro Addon there is an option to select a different role for each provider. However, we do not have the option to register accounts with the same provider with different roles.
If you want something like this, you must solve it with custom coding, for which we cannot provide support. In our developer docs you can find an example code:
https://nextendweb.com/nextend-social-login-docs/backend-developer/#trackerdata
on how to use trackerdata to determine where the button was pressed. And based on this you can change the user role through the “nsl_register_new_user” action (you will find this action in the above documentation as well).
If you have no developer experience, then I would rather recommend disabling registration with the social login using our “Membership” option on the General tab:
https://nextendweb.com/nextend-social-login-docs/global-settings/
And like that only existing accounts could link their social media account to their WordPress account, using the link and unlink buttons, which we display on the profile page by default, but you can also use the shortcode with the “link” and “unlink” parameters, like this:
[nextend_social_login login="1" link="1" unlink="1"]
to display it anywhere where you want.
Dear Robert, thank you for the information.
I have Google and Facebook providers activated on Nextend Social. Does their activation automatically make them visible on the WordPress login page? If so, is there a way to disable them?
Kind regards,
Israel Treviño
Plugin Support
Robert
(@robertnextendweb)
Hi @temasis
Yes, we try to automatically display the buttons of enabled providers on the WordPress default login and register page. If you don’t want this, you can turn it off on the Login form tab:
https://nextendweb.com/nextend-social-login-docs/global-settings-login-form/
Robert, thank you very much for your help.
Regards,
Israel
Plugin Support
Robert
(@robertnextendweb)
I am glad I could help. In this case I am going to mark this topic as resolved, but if you have further questions feel free to open a new topic or contact us directly here:
https://nextendweb.com/contact-us/nextend-social-login-support/