is_user_admin()
is_user_admin()
当前请求是否用于用户管理屏幕。
Whether the current request is for a user admin screen.
说明(Description)
e、 g./wp管理员/用户/
不检查用户是否是管理员;使用当前用户的can()检查角色和功能。
返回(Return)
(bool)如果在WordPress用户管理页面内,则为True。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.1.0 | wp-includes/load.php:1070 | 6 | 0 |
is_user_admin() 为WP2原创文章,链接:https://www.wp2.cn/functions/is_user_admin/