WordPress at a glance
Home Functions APIs REST API

REST API (category)

get_rest_url()

Retrieves the URL to a REST endpoint on a site.

register_rest_field()

Registers a new field on an existing WordPress object type.

register_rest_route()

Registers a REST API route.

rest_ensure_response()

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

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.