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:

Description

Ensures that the specified format is either 'json' or 'xml'.

Related Functions

wp_media_insert_url_form, wp_oembed_get, wp_embed_defaults, wp_embed_excerpt_more, _oembed_create_xml

Top Google Results

User discussions

wpseek mobile