apply_filters( ‘rest_endpoints’, array $endpoints )

In this article

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

$endpoints = apply_filters( 'rest_endpoints', $endpoints );

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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