The WordPress function wp_get_current_user()
uses the global variable $current_user
to get the get current logged-in user info.
What I would like to know is, how does WordPress retrieve the data from session cookie and store it in this global variable ($current_user
).
Thank you for you help!!
_wp_get_current_user()
andWP_User
class