wp_oembed_ensure_format
wp_oembed_ensure_format ( $format )
Parameters:- (string) format The oEmbed response format. Accepts 'json' or 'xml'.
Returns:- (string) The format, either 'xml' or 'json'. Default 'json'.
Defined at: - Introduced in WordPress: 4.4.0
- Deprecated in WordPress: —
Description
Ensures that the specified format is either 'json' or 'xml'.