WPDev.one
Core Function
View Source on Trac ↗

rest_handle_options_request()

rest_handle_options_request( mixed $response, mixed $handler, mixed $request )

Handles OPTIONS requests for the server.

Parameters 3 required

Name / Type Description
$response
mixed

Current response, either response or `null` to indicate pass-through.

Required
$handler
WP_REST_Server

ResponseHandler instance (usually WP_REST_Server).

Required
$request
WP_REST_Request

The request that was used to make current response.

Required

Return Value

(WP_REST_Response)
Modified response, either response or `null` to indicate pass-through.

Function Information

Since Version
4.4.0
Source File
wp-includes/rest-api.php
Advertisement