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

File: wp-admin/includes/class-wp-users-list-table.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.4.0 Introduced.