Advertisement

rest_parse_date

Parses an RFC3339 time into a Unix timestamp.

rest_cookie_check_errors

Checks for errors when using cookie-based authentication.

Advertisement

rest_output_rsd

Adds the REST API URL to the WP RSD endpoint.

rest_is_field_included

Given an array of fields to include in a response, some of which may be `nested.fields`, determine whether the provided field should be included in the response body.

rest_filter_response_fields

Filter the API response to include only a white-listed set of response object fields.

Advertisement

rest_send_allow_header

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

Advertisement

rest_ensure_response

Ensures a REST response is a response object (for consistency).