WordPress at a glance
filter is not described

oembed_dataparse filter-hook . WP 2.9.0

Filters the returned oEmbed HTML.

Use this filter to add support for custom data types, or to filter the result.


add_filter( 'oembed_dataparse', 'filter_function_name_9454', 10, 3 );
function filter_function_name_9454( $return, $data, $url ){
	// filter...

	return $return;
The returned oEmbed HTML.
A data object result from an oEmbed provider.
The URL of the content to be embedded.

Список изменений

С версии 2.9.0 Введена.

Где вызывается хук

wp-includes/class-wp-oembed.php 710
return apply_filters( 'oembed_dataparse', $return, $data, $url );

Где используется хук в ядре WP

wp-includes/class-wp-oembed.php 224
add_filter( 'oembed_dataparse', array( $this, '_strip_newlines' ), 10, 3 );
wp-includes/default-filters.php 592
add_filter( 'oembed_dataparse', 'wp_filter_oembed_iframe_title_attribute', 5, 3 );
wp-includes/default-filters.php 593
add_filter( 'oembed_dataparse', 'wp_filter_oembed_result', 10, 3 );