WordPress at a glance
filter is not described

rest_route_data filter-hook . WP 4.4.0

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.


add_filter( 'rest_route_data', 'filter_function_name_5307', 10, 2 );
function filter_function_name_5307( $available, $routes ){
	// filter...

	return $available;
Route data to expose in indexes, keyed by route.
Internal route data as an associative array.


Since 4.4.0 Introduced.

Where the hook is called

wp-includes/rest-api/class-wp-rest-server.php 1360
return apply_filters( 'rest_route_data', $available, $routes );

Where in WP core the hook is used WordPress

Usage not found.