• This is my very first WordPress review and I did this because I wanted to add to the chorus of approval of this wonderful Plugin and its creators.

    I’ve been playing with it for a while, however, I still need to be find out how to do the following:

    a) How to use the Social Login to create different levels of new free registrations.

    b) How to use social login to login to an account that is was previously created in WordPress and that has the same email address as the social site?

    Anyone that can help with this would be much appreciated.

    Once again, thank you for an amazing Plugin that is basically a premium plugin.
    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Heateor Support

    (@heateor)

    Thanks for the review ??

    a) How to use the Social Login to create different levels of new free registrations.

    Our plugin uses New user default role option at Settings > General page in admin panel, to assign role to new users registered via Social Login.
    To change default role, you can place following code at the end of “wp-content/themes/CURRENT_THEME/functions.php” before ?> (if ?> is not there, simply place the code at the end of the file) and save the file back. CURRENT_THEME is your active theme/child theme:

    function heateor_ss_change_user_role($userId, $userdata, $profileData){
    	$user = new WP_User( $userId );
    	$user->set_role( 'NEW_ROLE' );
    }
    add_action( 'the_champ_user_successfully_created', 'heateor_ss_change_user_role', 10, 3 );

    Replace NEW_ROLE with the role you want to assign a user.

    b) How to use social login to login to an account that is was previously created in WordPress and that has the same email address as the social site?

    It does it automatically. It checks if email associated with the social account of user already exists and if it does, it logs that user into that account without creating a new account.

    Thread Starter itsanewday

    (@itsanewday)

    Thank you so much for answering my questions so quickly. Very much appreciated!

    Plugin Author Heateor Support

    (@heateor)

    You’re welcome.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘A well written Plugin’ is closed to new replies.