apply_filters( ‘default_role_dropdown_excluded_roles’, string[] $roles_to_exclude )

In this article

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

VersionDescription
7.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.