On this page
apply_filters( 'oembed_dataparse', string $return, object $data, string $url )
Filters the returned oEmbed HTML.
Description
Use this filter to add support for custom data types, or to filter the result.
Parameters
$returnstring-
The returned oEmbed HTML.
$dataobject-
A data object result from an oEmbed provider.
$urlstring-
The URL of the content to be embedded.
Source
File: wp-includes/class-wp-oembed.php. View all references
return apply_filters( 'oembed_dataparse', $return, $data, $url );
Related
Used By
| Used By | Description |
|---|---|
| WP_oEmbed::data2html() wp-includes/class-wp-oembed.php | Converts a data object from WP_oEmbed::fetch() and returns the HTML. |
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/oembed_dataparse