wp_is_rest_endpoint


wp_is_rest_endpoint ( No parameters )

Returns:
  • (bool) True if a REST endpoint request is currently being handled, false otherwise.
Defined at:

Description

Checks whether a REST API endpoint request is currently being handled.This may be a standalone REST API request, or an internal request dispatched from within a regular page load.

Related Functions

is_protected_endpoint, add_rewrite_endpoint, wp_insert_post, wp_ajax_rest_nonce, wp_kses_post

Top Google Results

User discussions

wpseek mobile