setup_userdata


setup_userdata ( $for_user_id = 0 )

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

Description

Sets 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_user_details, get_user_meta

Top Google Results

User discussions

wpseek mobile