Core Function
View Source on Trac ↗ wp_oembed_ensure_format()
wp_oembed_ensure_format( mixed $format ) Ensures that the specified format is either 'json' or 'xml'.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $format string | The oEmbed response format. Accepts 'json' or 'xml'. Required |
Return Value
(string)
The format, either 'xml' or 'json'. Default 'json'.
Function Information
Since Version
4.4.0
Source File
wp-includes/embed.php
Advertisement