Displaying the logged in user details on your WordPress website is easy. WordPress has a built in function that will get the current user objects such as display name, first name, last name and ID. Simply call WordPress built-in function get_current_user within your template file or plugin.

Now that you called the function you'll want to return user objects to show on your site.

You can display the logged in user's avatar as well as custom user meta.

This post was written by Steven Soehl Tampa based web developer & designer, online marketer, and WordPress.

Tags

Posted Under: ,

Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz