default_role_dropdown_excluded_roles
default_role_dropdown_excluded_roles
Appears in: wordpress-7.0
Hook Type: filter
Displaying hooks found in version: wordpress-7.0apply_filters('default_role_dropdown_excluded_roles') 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 ) {