wp_is_json_media_type
wp_is_json_media_type ( $media_type )
Parameters:- (string) media_type A Media Type string to check.
Returns:- (bool) True if string is a valid JSON Media Type.
Defined at: - Introduced in WordPress: 5.6.0
- Deprecated in WordPress: —
Description
Checks whether a string is a valid JSON Media Type.