oembed_linktypes WordPress Filter Hook

The oembed_linktypes filter hook is used to modify the list of URL schemes that are recognized by the oEmbed provider.

apply_filters( 'oembed_linktypes', string[] $format ) #

Filters the link types that contain oEmbed provider URLs.


Parameters

$format

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


Top ↑

Source

File: wp-includes/class-wp-oembed.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.