apply_filters( 'get_role_list', array $role_list , WP_User $user_object )
Filters the returned array of roles for a user.
Parameters
- $role_list
-
An array of user roles.
- $user_object
-
A WP_User object.
Source
Changelog
Version | Description |
---|---|
WP-4.4.0 | Introduced. |