rest_endpoints

rest_endpoints

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('rest_endpoints') is found 1 times:

  • /wp-includes/rest-api/class-wp-rest-server.php line 973
    969
    970
    971
    972
    973
    974
    975
    976
    977
    978
    979
    *                         to an array of callbacks for the endpoint. These take the format
     *                         `'/path/regex' => array( $callback, $bitmask )` or
     *                         `'/path/regex' => array( array( $callback, $bitmask ).
     */
    $endpoints = apply_filters( 'rest_endpoints', $endpoints );
     
    // Normalize the endpoints.
    $defaults = array(
        'methods'       => '',
        'accept_json'   => false,
        'accept_raw'    => false,

See this hook used in plugins: