setup_userdata


setup_userdata ( $for_user_id = '' )

Parameters:
  • (int) $for_user_id Optional. User ID to set up global data.
Defined at:

Description

Set up global user vars.

Used by wp_set_current_user() for back compat. Might be deprecated in the future.

Related Functions

get_userdata, setup_postdata, get_usermeta, get_users_drafts, get_userdatabylogin

Top Google Results

User discussions

wpseek mobile