Created
November 11, 2014 07:35
-
-
Save Vesymos/98396194482d2aabccb8 to your computer and use it in GitHub Desktop.
Display user avatar on comment form
From http://premium.wpmudev.org/blog/daily-tip-display-avatars-for-logged-in-users-to-encourage-commenting/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $current_user; | |
get_currentuserinfo(); | |
echo get_avatar( $current_user->ID, 128 ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment