rest_endpoints

rest_endpoints

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('rest_endpoints') is found 1 times:

  • /wp-includes/rest-api/class-wp-rest-server.php line 894
    		 *                         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: