W3cubDocs

/WordPress

apply_filters( 'get_role_list', string[] $role_list, WP_User $user_object )

Filters the returned array of roles for a user.

Parameters

$role_list

(string[]) An array of user roles.

$user_object

(WP_User) A WP_User object.

Source

File: wp-admin/includes/class-wp-users-list-table.php

View on Trac

Changelog

Version Description
4.4.0 Introduced.

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