oembed_result, $wp_oembed->data2html( $data, $url

oembed_result, $wp_oembed->data2html( $data, $url

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('oembed_result, $wp_oembed->data2html( $data, $url') is found 1 times:

  • /modules/shortcodes/youtube.php line 583
    	$wp_oembed = _wp_oembed_get_object();
    	$data      = $wp_oembed->get_data( $url, $args );
    	if ( $data ) {
    		/** This filter is documented in wp-includes/class-wp-oembed.php */
    		return apply_filters( 'oembed_result', $wp_oembed->data2html( $data, $url ), $url, $args );
    	}
    
    	// Fallback to the custom handler if the oembed result is not found, especially for the private video.
    	return jetpack_youtube_id( $url );
    }
    add_filter( 'pre_oembed_result', 'wpcom_youtube_filter_pre_oembed_result', 10, 3 );