Filter hook 'oembed_dataparse'
in WP Core File wp-includes/class-wp-oembed.php at line 744
Description
Filters the returned oEmbed HTML. Use this filter to add support for custom data types, or to filter the result.
Occurrences
Filename |
Line Number |
wp-includes/class-wp-oembed.php |
744 |
Parameters
Type |
Name |
Description |
string |
$return |
The returned oEmbed HTML. |
object |
$data |
A data object result from an oEmbed provider. |
string |
$url |
The URL of the content to be embedded. |
Usage Examples
Example 1
add_filter( 'oembed_dataparse', array( $this, '_strip_newlines'
PHP Doc
/**
* Filters the returned oEmbed HTML.
*
* Use this filter to add support for custom data types, or to filter the result.
*
* @since 2.9.0
*
* @param string $return The returned oEmbed HTML.
* @param object $data A data object result from an oEmbed provider.
* @param string $url The URL of the content to be embedded.
*/