function wp_filter_oembed_result( $result,
$data,
$url ) { if ( false ===
$result || !
in_array( $data->type, array
( 'rich', 'video'
), true
) ) { return $result;
} $wp_oembed =
_wp_oembed_get_object();
// Don't modify the HTML for trusted providers.
if ( false !==
$wp_oembed->
get_provider( $url, array
( 'discover' => false
) ) ) { return $result;
} $allowed_html = array
( 'a' => array
( 'href' => true,
),
'blockquote' => array
(),
'iframe' => array
( 'src' => true,
'width' => true,