A WordPress-centric search engine for devs and theme authors



get_role_list ›

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

Filters the returned array of roles for a user.





Source

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