Skip to content

Instantly share code, notes, and snippets.

@wanye71
Created November 19, 2012 01:45
Show Gist options
  • Save wanye71/4108530 to your computer and use it in GitHub Desktop.
Save wanye71/4108530 to your computer and use it in GitHub Desktop.
Displays user's meta info
<?php
global $current_user;
get_currentuserinfo();
echo 'Username: ' . $current_user->user_login . "\n";
echo '<br />';
echo 'User first name: ' . $current_user->user_firstname . "\n";
echo '<br />';
echo 'User last name: ' . $current_user->user_lastname . "\n";
echo '<br />';
echo 'User display name: ' . $current_user->display_name . "\n";
echo '<br />';
echo 'User display name: ' . '<image src="'. $current_user->image . '">';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment