wphooks.info - get_role_list

get_role_list

(trunk - 5.0-alpha-42490)

The hook occurs in the following file:

wp-admin/includes/class-wp-users-list-table.php:
589
590
591
592
593
594
595
596
597
598
599
600
601
602
		}

		/**
		 * Filters the returned array of roles for a user.
		 *
		 * @since 4.4.0
		 *
		 * @param array   $role_list   An array of user roles.
		 * @param WP_User $user_object A WP_User object.
		 */
		return apply_filters( 'get_role_list', $role_list, $user_object );
	}

}