• Hi,

    I don’t find the right variable to intercept the username when the authentication is handle by wp-social-login.

    This could be even the name of the HTTP POST variable, if any.

    Just to give you an example, this is an extract of all the possible ways to intercept the username (registration/login/user edited by admin):

    
    //get username at authentication/registration/user creation time
    $username = get_userdata($user_id)->user_login; // get username of user being edited (admin)
    $username = isset($_POST['user_login']) ? $_POST['user_login'] : $username; // get username of user logging in
    $username = isset($_POST['signup_username']) ? $_POST['signup_username'] : $username; // get username of using getting registered
    $username = !isset($username) ? XXXXXX : $username; // get username of external auth (wp-social-login)
    

    The last one should get the username when using wp-social-login.

    Any idea?

    Thanks!

    Gio

    • This topic was modified 8 years, 4 months ago by giobby.
    • This topic was modified 8 years, 4 months ago by giobby.
  • The topic ‘What variable for the username generated by wp-social-login?’ is closed to new replies.