wp_oembed_ensure_format

SummerySummery

Ensures that the specified format is either ‘json’ or ‘xml’.

Syntax

wp_oembed_ensure_format( string $format )

ParametersParameters

$format

(string) (Required) The oEmbed response format. Accepts 'json' or 'xml'.

ReturnReturn

(string) The format, either 'xml' or 'json'. Default 'json'.

SourceSource

File: wp-includes/embed.php


			

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.
Scroll to Top