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:

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.

Related Functions

wp_filter_pre_oembed_result, wp_filter_comment, wp_filter_nohtml_kses, wp_oembed_get, wp_filter_post_kses

Top Google Results

User discussions

wpseek mobile