Function: _oembed_create_xml

_oembed_create_xml( array $data, SimpleXMLElement $node )

Creates an XML string from a given array.

Parameters

Name Type(s) Default Value Description
$data array

The original oEmbed response data.

$node \SimpleXMLElement null

Optional. XML node to append the result to recursively.

Returns

string | false

XML string on success, false on error.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.