WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about rest_endpoints

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/rest-api/class-wp-rest-server.php apply_filters 880 /**
* 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 ).
*/

Hook Parameters

Parameter Type Name Description
array $endpoints The available endpoints. An array of matching regex patterns, each mapped