Core Function
View Source on Trac ↗ wp_is_json_media_type()
wp_is_json_media_type( mixed $media_type ) Checks whether a string is a valid JSON Media Type.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $media_type string | A Media Type string to check. Required |
Return Value
(bool)
True if string is a valid JSON Media Type.
Function Information
Since Version
5.6.0
Source File
wp-includes/load.php
Advertisement