wpseek.com
WordPress开发者和主题制作者的搜索引擎
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
已弃用3.0.0
› set_current_user ( $id, $name = '' )
参数: (2) |
|
查看: | |
返回: |
|
定义在: |
|
文档: |
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, wp_get_current_user, get_current_user_id, _wp_get_current_user, set_current_screen