Core Function
View Source on Trac ↗ wp_is_json_request()
wp_is_json_request( ) Checks whether current request is a JSON request, or is expecting a JSON response.
Return Value
(bool)
bool True if `Accepts` or `Content-Type` headers contain `application/json`.
False otherwise.
Function Information
Since Version
5.0.0
Source File
wp-includes/load.php
Advertisement