Open ipokkel opened 4 years ago
As a possible temporary workaround when using Super Socializer:
https://gist.github.com/ipokkel/a56be9377a8fae619a79f72b59b384ce
Whats the solution for this actually?
https://www.paidmembershipspro.com/give-users-a-default-membership-level-at-registration/
Found the solution in PMPRO's documentation
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
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,
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.