wpseek.com
WordPress开发者和主题制作者的搜索引擎



default_role_dropdown_excluded_roles › WordPress过滤钩子

Since7.0.0
已弃用n/a
› apply_filters( 'default_role_dropdown_excluded_roles', array( 'administrator', 'editor' )
参数:
  • () roles_to_exclude Array of roles to exclude from the dropdown. Defaults to administrator and editor.
    Required: Yes
定义在:
文档:

Filters the roles to be excluded from the default_role option.





源码

$excluded_roles = (array) apply_filters( 'default_role_dropdown_excluded_roles', array( 'administrator', 'editor' ) );