wp_filter_pre_oembed_result


wp_filter_pre_oembed_result ( $result, $url, $args )

Parameters:
  • (null|string) $result The UNSANITIZED (and potentially unsafe) HTML that should be used to embed. Default null.
  • (string) $url The URL that should be inspected for discovery `<link>` tags.
  • (array) $args oEmbed remote get arguments.
Returns:
  • (null|string) The UNSANITIZED (and potentially unsafe) HTML that should be used to embed. Null if the URL does not belong to the current site.
Defined at:

Description

Filters the oEmbed result before any HTTP requests are made.

If the URL belongs to the current site, the result is fetched directly instead of going through the oEmbed discovery process.

Related Functions

wp_filter_oembed_result, wp_filter_post_kses, wp_filter_comment, wp_filter_nohtml_kses, wp_oembed_get

Top Google Results

User discussions

wpseek mobile