apply_filters( 'oembed_dataparse', string $return , object $data , string $url )
Filters the returned oEmbed HTML.
Description Description
Use this filter to add support for custom data types, or to filter the result.
Parameters Parameters
- $return
-
(string) The returned oEmbed HTML.
- $data
-
(object) A data object result from an oEmbed provider.
- $url
-
(string) The URL of the content to be embedded.
Source Source
Changelog Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Can be used to wrap oEmbed response in html, depending on type and size of oEmbed.
Expand full source codeCollapse full source code
To use ‘oembed_dataparse’ for the first time, you might have to clear oEmbed post-meta cache:
Expand full source codeCollapse full source code