WordPress at a glance
filter is not described

rest_endpoints filter-hook . WP 4.4.0

Filters the array of available endpoints.


add_filter( 'rest_endpoints', 'filter_function_name_735' );
function filter_function_name_735( $endpoints ){
	// filter...

	return $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 ).

Where the hook is called

wp-includes/rest-api/class-wp-rest-server.php 724
$endpoints = apply_filters( 'rest_endpoints', $this->endpoints );

Where the hook is used (in WP core)

Использование не найдено.