Created
March 7, 2018 06:38
-
-
Save nextend/5a7ba0905e28413fa21c4b2f8b287400 to your computer and use it in GitHub Desktop.
Nextend Social Login - TrackerData
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('nsl_register_new_user', function ($user_id) { | |
if (NextendSocialLogin::getTrackerData() == 'editor') { | |
$user = new WP_User($user_id); | |
$user->set_role('editor'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment