wpseek.com
A WordPress-centric search engine for devs and theme authors



get_role_list › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( 'get_role_list', $role_list, $user_object )
Parameters: (2)
  • (string[]) $role_list An array of translated user role names keyed by role.
    Required: Yes
  • (WP_User) $user_object A WP_User object.
    Required: Yes
Defined at:
Codex:

Filters the returned array of translated role names for a user.





Source

return apply_filters( 'get_role_list', $role_list, $user_object );