wp_filter_oembed_result
wp_filter_oembed_result ( $result, $data, $url )
Parameters:- (string) result The oEmbed HTML result.
- (object) data A data object result from an oEmbed provider.
- (string) url The URL of the content to be embedded.
Returns:- (string) The filtered and sanitized oEmbed result.
Defined at: - Introduced in WordPress: 4.4.0
- Deprecated in WordPress: —
Description
Filters the given oEmbed HTML.If the `$url` isn't on the trusted providers list,
we need to filter the HTML heavily for security.
Only filters 'rich' and 'video' response types.