REST API (category)

get_rest_url()

Retrieves the URL to a REST endpoint on a site.

register_rest_field()

Registers a new REST field for the specified type of REST object (resource).

register_rest_route()

Registers a REST API route and its endpoints. Simply put, it registers the URL that will trigger the specified PHP function.

rest_ensure_response()

Checks and, if necessary, converts the passed data into an object of the WP_HTTP_Response class.

rest_is_boolean()

Determines if a given value is a boolean or boolean-like. Doesn't look at the type of a given value, and like in PHP, 1 = true and 0 = false.

rest_output_link_wp_head()

Displays a link to the root REST API route in the <head> section on all site pages.

rest_sanitize_array()

Converts the given value to an indexed array. If the conversion is not possible, it returns an empty array.

rest_stabilize_value()

Unifies (standardizes) the passed value according to the semantics of the JSON schema.

rest_url()

Gets the REST API URL for the current site. You can specify a specific route.

WP_Application_Passwords::create_new_application_password()

Creates an Application Password.

wp_authenticate_application_password()

Authorizes the user using the application password.

wp_generate_uuid4()

Generates an identifier - a random unique string consisting of letters and numbers. Creates UUID (Universally unique identifier) version 4.

wp_is_application_passwords_available()

Checks if Application Passwords can be used for the current request.

wp_is_rest_endpoint()

Checks if the current request is a request to the REST API.

wp_is_uuid()

Checks if the specified string is a UUID string.