On this page
apply_filters( 'rest_endpoints', array $endpoints )
Filters the array of available REST API endpoints.
Parameters
$endpointsarray-
The available endpoints. An array of matching regex patterns, each mapped to an array of callbacks for the endpoint. These take the format
'/path/regex' => array( $callback, $bitmask )or `'/path/regex'=> array( array( $callback, $bitmask ).
Source
File: wp-includes/rest-api/class-wp-rest-server.php. View all references
$endpoints = apply_filters( 'rest_endpoints', $endpoints );
Related
Used By
| Used By | Description |
|---|---|
| WP_REST_Server::get_routes() wp-includes/rest-api/class-wp-rest-server.php | Retrieves the route map. |
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