rest_handle_options_request


rest_handle_options_request ( $response, $handler, $request )

Parameters:
  • (mixed) response Current response, either response or `null` to indicate pass-through.
  • (WP_REST_Server) handler ResponseHandler instance (usually WP_REST_Server).
  • (WP_REST_Request) request The request that was used to make current response.
Returns:
  • (WP_REST_Response) Modified response, either response or `null` to indicate pass-through.
Defined at:

Description

Handles OPTIONS requests for the server.This is handled outside of the server code, as it doesn't obey normal route mapping.

Related Functions

rest_do_request, rest_ensure_request, rest_sanitize_request_arg, _delete_option_fresh_site, rest_validate_request_arg

Top Google Results

User discussions

wpseek mobile