apply_filters( 'rest_endpoints', array $endpoints )

Filters the array of available endpoints.


Description Description


Parameters Parameters

$endpoints

(array) 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 ).


Top ↑

Source Source

File: wp-includes/rest-api/class-wp-rest-server.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.