editable_roles
apply_filters( ‘editable_roles’, array[] $all_roles )
过滤钩子:过滤可编辑角色的列表。
Filter Hook: Filters the list of editable roles.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$all_roles | (array[]) | 包含角色信息的数组数组。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.8.0 | wp-admin/includes/user.php:273 | 1 | 0 |
editable_roles 为WP2原创文章,链接:https://www.wp2.cn/hook/editable_roles/