rest_endpoints_description WordPress Filter Hook
The rest_endpoints_description hook allows you to modify the documentation for your custom REST endpoints. This hook is called when the documentation is generated for your endpoints, and it gives you a chance to add your own documentation for your custom endpoints.
apply_filters( 'rest_endpoints_description', array $data ) #
Filters the publicly-visible data for a single REST API route.
Parameters
- $data
(array)Publicly-visible data for the route.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |