get_role_list WordPress Filter Hook
The get_role_list WordPress hook is used to get a list of available roles for the current site. This can be useful for plugins and themes that need to know what roles are available on the site.
apply_filters( 'get_role_list', string[] $role_list , WP_User $user_object ) #
Filters the returned array of translated role names for a user.
Parameters
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |