wp_is_json_request

SummerySummery

Checks whether current request is a JSON request, or is expecting a JSON response.

Syntax

wp_is_json_request()

ReturnReturn

(bool) True if Accepts or Content-Type headers contain application/json. False otherwise.

SourceSource

File: wp-includes/load.php


			

ChangelogChangelog

Changelog
Version Description
5.0.0 Introduced.
Scroll to Top