Skip to content

Instantly share code, notes, and snippets.

@jfcode
Created March 7, 2014 19:21
Show Gist options
  • Save jfcode/9418034 to your computer and use it in GitHub Desktop.
Save jfcode/9418034 to your computer and use it in GitHub Desktop.
<?php if ( is_user_logged_in() ) { ?>
<?php $user_info = get_userdata(get_current_user_id());
global $current_user;
get_currentuserinfo();
echo get_avatar( $current_user->ID, 200 );
echo '<br />';
echo '<br />';
echo 'Welcome, ' . $user_info->user_login . "!" . "\n";
echo '<br />';
echo '<br />';
echo 'Bio: ' . $current_user->description . "\n";
echo '<br />';
echo '<br />';
echo 'User email: ' . $current_user->user_email . "\n";
echo '<br />';
echo '<br />';
echo 'User first name: ' . $current_user->user_firstname . "\n";
echo '<br />';
echo '<br />';
echo 'User last name: ' . $current_user->user_lastname . "\n";
echo '<br />';
echo '<br />';
echo 'User display name: ' . $current_user->display_name . "\n";
echo '<br />';
echo '<br />';
echo 'User ID: ' . $current_user->ID . "\n";
echo '<br />';
echo '<br />';
echo 'Website: ' . $current_user->user_url . "\n";
echo '<br />';
echo '<br />';
echo 'Nickname: ' . $current_user->nickname . "\n";
echo '<br />';
echo '<br />';
echo 'Login Name: ' . $current_user->user_login . "\n";
echo '<br />';
echo '<br />';
echo 'Registration Date: ' . $current_user->user_registered . "\n";
echo '<br />';
echo '<br />';
echo 'Jabber/Google Talk: ' . $current_user->jabber . "\n";
echo '<br />';
echo '<br />';
echo 'Yahoo IM: ' . $current_user->yim . "\n";
echo '<br />';
echo '<br />';
echo 'AIM: ' . $current_user->aim . "\n";
?>
<?php } else { ?>
To see your info, you need to be <a href="<?php echo wp_login_url(); ?>">logged in</a>.
If not a member, you can <a href="<?php echo wp_registration_url(); ?>" title="Register">register here</a>.
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment