default_role_dropdown_excluded_roles, array( administrator, editor
default_role_dropdown_excluded_roles, array( administrator, editor
Appears in: 7.0.3
Hook Type: filter
Displaying hooks found in version: 7.0.3apply_filters('default_role_dropdown_excluded_roles, array( administrator, editor') is found 1 times:
- /wp-admin/options-general.php line 316
* * @param string[] $roles_to_exclude Array of roles to exclude from the dropdown. * Defaults to administrator and editor. */ $excluded_roles = (array) apply_filters( 'default_role_dropdown_excluded_roles', array( 'administrator', 'editor' ) ); $editable_roles = array_reverse( get_editable_roles() ); $selected = get_option( 'default_role' ); foreach ( $editable_roles as $role => $details ) {