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:

Description

Checks whether a string is a valid JSON Media Type.

Related Functions

wp_is_json_request, wp_json_encode, wp_print_media_templates, wp_is_jsonp_request, wp_is_numeric_array

Top Google Results

User discussions

wpseek mobile