rest_send_allow_header


rest_send_allow_header ( $response, $server, $request )

Parameters:
  • (WP_REST_Response) response Current response being served.
  • (WP_REST_Server) server ResponseHandler instance (usually WP_REST_Server).
  • (WP_REST_Request) request The request that was used to make current response.
Returns:
  • (WP_REST_Response) Response to be served, with "Allow" header if route has allowed methods.
Defined at:

Description

Sends the "Allow" header to state all methods that can be sent to the current route.

Related Functions

rest_send_cors_headers, rest_get_allowed_schema_keywords, get_space_allowed, get_site_allowed_themes, register_default_headers

Top Google Results

User discussions

wpseek mobile