Used By
Used By | Description |
---|---|
wp-includes/rest-api/class-wp-rest-server.php: WP_REST_Server::get_data_for_routes() | Retrieves the publicly-visible data for routes. |
Filters the publicly-visible data for 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.
(array[]) Route data to expose in indexes, keyed by route.
(array) Internal route data as an associative array.
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_route_data