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: - Introduced in WordPress: 2.0.4
- Deprecated in WordPress: —
Description
Sets up global user vars.Used by wp_set_current_user() for back compat. Might be deprecated in the future.