File: wp-includes/rest-api.php
-
Filters the REST route for the currently queried object.
-
functionrest_get_route_for_post()
Gets the REST API route for a post.
-
Filters the REST API route for a post.
-
functionrest_get_route_for_term()
Gets the REST API route for a term.
-
Filters the response to remove any fields not available in the given context.
-
Sets the “additionalProperties” to false by default for all object definitions in the schema.
-
functionrest_is_object()
Determines if a given value is object-like.
-
functionrest_sanitize_object()
Converts an object-like value to an array.
-
functionrest_get_best_type_for_value()
Gets the best type for a value.
-
functionrest_handle_multi_type_schema()
Handles getting the best type for a multi-type schema.
-
Checks if an array is made up of unique items.
-
functionrest_stabilize_value()
Stabilizes a value following JSON Schema semantics.
-
functionrest_sanitize_array()
Converts an array-like value to an array.
-
functionrest_is_integer()
Determines if a given value is integer-like.
-
functionrest_is_array()
Determines if a given value is array-like.
-
functionrest_parse_hex_color()
Parses a 3 or 6 digit hex color (with #).
-
functionrest_handle_doing_it_wrong()
Handles _doing_it_wrong errors.
-
functionrest_parse_embed_param()
Parses the “_embed” parameter into the list of resources to embed.
-
functionrest_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.
-
Recursively computes the intersection of arrays using keys for comparison.
-
functionrest_preload_api_request()
Append result of internal request to REST API for purpose of preloading data to be attached to a page.
-
Filters the search handlers to use in the REST search controller.
-
functionrest_filter_response_fields()
Filters the REST API response to include only an allow-listed set of response object fields.
-
Sanitize a value based on a schema.
-
functionrest_is_ip_address()
Determines if an IP address is valid.
-
functionrest_sanitize_boolean()
Changes a boolean-like value into the proper boolean value.
-
functionrest_is_boolean()
Determines if a given value is boolean-like.
-
functionrest_get_avatar_urls()
Retrieves the avatar URLs in various sizes.
-
functionrest_get_avatar_sizes()
Retrieves the pixel sizes for avatars.
-
Filters the REST avatar sizes.