strangerstudios / pmpro-social-login

Allow users to create membership account via social networks as configured via WordPress plguins link NextEnd Social Login or Super Socializer.
https://www.paidmembershipspro.com/add-ons/social-login-add-on/
8 stars 14 forks source link

No default level assigned when using Super Socializer #6

Open ipokkel opened 4 years ago

ipokkel commented 4 years ago

When assigning a default level for social logins a membership level is not assigned to the new user when logging in the first time with a social account through the Super Socializer plugin.

The default registration level seems to hook into only to WordPress Social Login to create a new user here:

https://github.com/strangerstudios/pmpro-social-login/blob/18d690076889a239c44b0bf87c4e62d567c01099/pmpro-social-login.php#L111

Maybe it's worth considering expanding plugin functionality to assign a default level when either the supported alternative social logins, NextEnd Social Login (wordpress.org/plugins/nextend-facebook-connect) or Super Socializer (wordpress.org/plugins/super-socializer), is in use.

ipokkel commented 4 years ago

As a possible temporary workaround when using Super Socializer:

https://gist.github.com/ipokkel/a56be9377a8fae619a79f72b59b384ce

xueyongg commented 3 years ago

Whats the solution for this actually?

xueyongg commented 3 years ago

https://www.paidmembershipspro.com/give-users-a-default-membership-level-at-registration/

Found the solution in PMPRO's documentation

dparker1005 commented 3 years ago

This is also an issue for Nextend Social Login. User recommends using their nsl_register_new_user hook.

Ticket (admins only): https://www.paidmembershipspro.com/forums/topic/membership-level-is-not-working-with-social-login-addon-and-nextend-social-login/?skipped=335855

ouka1102 commented 2 years ago

As a possible temporary workaround when using Super Socializer:

https://gist.github.com/ipokkel/a56be9377a8fae619a79f72b59b384ce

Is there a Nextend Social Login version of this solution?

Thanks,