It is really easy to get the logged-in user’s information in Wordpress or Woocommerce. In this article we will show you how to get the related to the currently logged in user.
We will utilize get_currentuserinfo(); function. This could be used anywhere in your theme (header, footer, sidebar, page-template etc). In order for this to work this code the user must be logged-in.