• Resolved subair.tc

    (@subairtc)


    hi,
    please let me know if there any option for getting the social media used when user register using Social Login plugin.
    I have fount a post variable ‘appName’ and let me know if you are storing this data in any user meta or any where else.

    other wise please store it any user meta, my client require know which social media used by the users for registering.

    Thanks
    Subair

    • This topic was modified 7 years, 5 months ago by subair.tc.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author miniOrange

    (@cyberlord92)

    Hi @subairtc,

    Thank you for reaching out to us.

    Please add the following snippet at Line 797 (open it in Notepad++) in the class-mo-openid-login-widget.php to fetch the app name ->

    
    $decrypted_social_app_name =isset($_POST['appName']) ?  mo_openid_decrypt($_POST['appName']): '';
    
    $decrypted_social_app_name=preg_replace('/[\x00-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0\xAD]/', '', $decrypted_social_app_name);
    
    $decrypted_social_app_name =strtolower($decrypted_social_app_name);
    
    

    Add the following snippet at line 936 in the same file to store the app name in the user meta table ->

    
    update_user_meta( $user_id, "app_name", $decrypted_social_app_name);
    
    

    Let me know if you have any further questions.

    Thanks,
    miniOrange Team

    • This reply was modified 7 years, 4 months ago by miniOrange.
    Plugin Author miniOrange

    (@cyberlord92)

    Hi @subairtc,

    Thank you for reaching out to us.

    Please add the following snippet at Line 797 in the class-mo-openid-login-widget.php to fetch appName->

    
    $decrypted_social_app_name =isset($_POST['appName']) ?  mo_openid_decrypt($_POST['appName']): '';
    
    $decrypted_social_app_name=preg_replace('/[\x00-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0\xAD]/', '', $decrypted_social_app_name);
    
    $decrypted_social_app_name =strtolower($decrypted_social_app_name);
    
    

    Add the following snippet at Line 936 in the same file to store the app name in the user meta table ->

    
    update_user_meta($user_id, 'app_name', $decrypted_social_app_name);
    
    

    I hope this resolves your query.

    Thanks,
    miniOrange Team

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get the social media used by the user’ is closed to new replies.