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.


Top ↑

Source

File: wp-includes/rest-api/class-wp-rest-server.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.