apply_filters( 'editable_roles', array[] $all_roles )

Filters the list of editable roles.

Parameters

$all_roles

(array[]) Array of arrays containing role information.

More Information

editable_roles is a filter applied by the function get_editable_roles() to the list of roles that one user can assign to others (a user must have the edit_users capability to change another user’s role). This list is displayed in the bulk operations (if the user has the list_users and promote_users) of the Users Screen, and on the profile screen.

Source

File: wp-admin/includes/user.php

View on Trac

Changelog

Version Description
2.8.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/editable_roles