Filter hook 'rest_route_data'

in WP Core File wp-includes/rest-api/class-wp-rest-server.php at line 1534

Description

Filters the publicly-visible data for REST API routes. This data is exposed on indexes and can be used by clients or developers to investigate the site and find out how to use it. It acts as a form of self-documentation.

Occurrences

Filename Line Number
wp-includes/rest-api/class-wp-rest-server.php 1534

Parameters

Type Name Description
array[] $available Route data to expose in indexes, keyed by route.
array $routes Internal route data as an associative array.

PHP Doc

/**
		 * Filters the publicly-visible data for REST API routes.
		 *
		 * This data is exposed on indexes and can be used by clients or
		 * developers to investigate the site and find out how to use it. It
		 * acts as a form of self-documentation.
		 *
		 * @since 4.4.0
		 *
		 * @param array[] $available Route data to expose in indexes, keyed by route.
		 * @param array   $routes    Internal route data as an associative array.
		 */