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!!

0

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *