wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
set_current_user is deprecated since version 3.0.0!
Alternative: Ver página de detalhe para wp_set_current_user »" href="https://pt.wpseek.com/function/wp_set_current_user/">wp_set_current_user()
Alternative: Ver página de detalhe para wp_set_current_user »" href="https://pt.wpseek.com/function/wp_set_current_user/">wp_set_current_user()
set_current_user › WordPress Function
Desde2.0.1
Obsoleto3.0.0
› set_current_user ( $id, $name = '' )
Parâmetros: (2) |
|
Ver: | |
Retorna: |
|
Definido em: |
|
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.Funções relacionadas: wp_set_current_user, wp_get_current_user, get_current_user_id, _wp_get_current_user, set_current_screen