Add this to the end of wsl.auth.widget.php
// --------------------------------------------------------------------
function wsl_get_username(){
global $current_user;
get_currentuserinfo();
$user_id = $current_user->ID;
$display_wsl_username = wsl_get_user_data_by_user_id( "display_name", $user_id );
return $display_wsl_username;
}
add_shortcode ( 'wsl_username', 'wsl_get_username' );
And add [wsl_username] is cool
Hey thank you for your help, but I can’t find that file anywhere when I’m in the edit section of WordPress-Social-Login? There are only 5 *.php files:
wordpress-social-login/wp-social-login.php
wordpress-social-login/hybridauth/index.php
wordpress-social-login/services/siteinfo.php
wordpress-social-login/services/diagnostics.php
wordpress-social-login/services/index.php
Am I looking in the wrong dir/ ?
Thank you for your help Mel, and thanks for your quick response. I figured it out and that worked great!
How would I be able to get their FB (or any social site) avatar to show as well when they are logged in?
add that on WSLs options page
wp-admin/options-general.php?page=wordpress-social-login&wslp=login-widget Basic > User Avatars > “Display user avatars from social networks when available”