wpseek.com
A WordPress-centric search engine for devs and theme authors
set_current_user is deprecated since version 3.0.0!
Alternative: wp_set_current_user()
Alternative: wp_set_current_user()
set_current_user › WordPress Function
Since2.0.1
Deprecated3.0.0
› set_current_user ( $id, $name = '' )
Parameters: (2) |
|
See: | |
Returns: |
|
Defined at: |
|
Codex: |
Changes the current user by ID or name.
Set $id to null and specify a name if you do not know a user's ID.Related Functions: wp_set_current_user, get_current_user_id, wp_get_current_user, _wp_get_current_user, set_current_screen