Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_role_list ›

Desde4.4.0
Obsoleton/a
apply_filters( 'get_role_list', $role_list, $user_object )
Parâmetros: (2)
  • (string[]) $role_list An array of user roles.
    Required: Yes
  • (WP_User) $user_object A WP_User object.
    Required: Yes
Definido em:
Codex:

Filters the returned array of roles for a user.





Fonte

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