rest_endpoints_description filter-hook . WP 4.4.0
Filters the REST endpoint data.
Usage
add_filter( 'rest_endpoints_description', 'filter_function_name_2012' ); function filter_function_name_2012( $request ){ // filter... return $request; }
- $request(WP_REST_Request)
- Request data. The namespace is passed as the 'namespace' parameter.
Changelog
Since 4.4.0 | Introduced. |
Where the hook is called
rest_endpoints_description
wp-includes/rest-api/class-wp-rest-server.php 1336
$available[ $route ] = apply_filters( 'rest_endpoints_description', $data );