Jan 31, 2020 8:55 pm
I would like to show the username with your avatar in a menu, to display the account options, is there already any function to do this?
6 Replies
Feb 01, 2020 5:40 am
The avatar could be displayed using this function:
<?php echo get_avatar( get_current_user_id(), 60 ); ?>
The user display name:
<?php echo WPF()->current_user_display_name; ?>