wpseek.com
A WordPress-centric search engine for devs and theme authors



default_role_dropdown_excluded_roles › WordPress Filter Hooks

Since7.0.0
Deprecatedn/a
apply_filters( 'default_role_dropdown_excluded_roles', array( 'administrator', 'editor' )
Parameters:
  • () roles_to_exclude Array of roles to exclude from the dropdown. Defaults to administrator and editor.
    Required: Yes
Defined at:
Codex:

Filters the roles to be excluded from the default_role option.





Source

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