apply_filters( ‘oembed_linktypes’, string[] $format )

In this article

Filters the link types that contain oEmbed provider URLs.

Parameters

$formatstring[]
Array of oEmbed link types. Accepts 'application/json+oembed', 'text/xml+oembed', and 'application/xml+oembed' (incorrect, used by at least Vimeo).

Source

$linktypes = apply_filters(
	'oembed_linktypes',
	array(
		'application/json+oembed' => 'json',
		'text/xml+oembed'         => 'xml',
		'application/xml+oembed'  => 'xml',
	)
);

Changelog

VersionDescription
2.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.