wphooks.info - get_role_list

get_role_list

The hook occurs in the following file:

wp-admin/includes/class-wp-users-list-table.php:
550
551
552
553
554
555
556
557
558
559
560
561
562
563
		}

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

}