wphooks.info - get_role_list

get_role_list

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-admin/includes/class-wp-users-list-table.php:
567
568
569
570
571
572
573
574
575
576
577
578
579
580
		}

		/**
		 * 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 );
	}

}