Filters the publicly-visible data for REST API routes.
Description
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.
Parameters
$available
array[]- Route data to expose in indexes, keyed by route.
$routes
array- Internal route data as an associative array.
Source
return apply_filters( 'rest_route_data', $available, $routes );
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.