On this page
apply_filters( 'rest_endpoints_description', array $data )
Filters the publicly-visible data for a single REST API route.
Parameters
$dataarray-
Publicly-visible data for the route.
Source
File: wp-includes/rest-api/class-wp-rest-server.php. View all references
$available[ $route ] = apply_filters( 'rest_endpoints_description', $data );
Related
Used By
| Used By | Description |
|---|---|
| WP_REST_Server::get_data_for_routes() wp-includes/rest-api/class-wp-rest-server.php | Retrieves the publicly-visible data for routes. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_endpoints_description