Filters the roles to be excluded from the default_role option.
Parameters
$roles_to_excludestring[]- Array of roles to exclude from the dropdown.
Defaults to administrator and editor.
Source
$excluded_roles = (array) apply_filters( 'default_role_dropdown_excluded_roles', array( 'administrator', 'editor' ) );
Changelog
| Version | Description |
|---|---|
| 7.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.