wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
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
Da2.0.1
Deprecato3.0.0
› set_current_user ( $id, $name = '' )
Parametri: (2) |
|
Vedi: | |
Ritorna: |
|
Definito a: |
|
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.Funzioni correlate: wp_set_current_user, wp_get_current_user, get_current_user_id, _wp_get_current_user, set_current_screen