Filter hook 'rest_endpoints'
in WP Core File wp-includes/rest-api/class-wp-rest-server.php at line 911
Description
Filters the array of available REST API endpoints.
Occurrences
Filename |
Line Number |
wp-includes/rest-api/class-wp-rest-server.php |
911 |
Parameters
Type |
Name |
Description |
array |
$endpoints |
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 ). |
PHP Doc
/**
* Filters the array of available REST API endpoints.
*
* @since 4.4.0
*
* @param array $endpoints 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 ).
*/