A WordPress-centric search engine for devs and theme authors



rest_endpoints ›

Since4.4.0
Deprecatedn/a
apply_filters( 'rest_endpoints', $this->endpoints )
Parameters:
  • (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 ).
    Required: Yes
Defined at:
Codex:

Filters the array of available endpoints.





Source

$endpoints = apply_filters( 'rest_endpoints', $this->endpoints );