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).
Source
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |