wp_filter_oembed_result

SummerySummery

Filters the given oEmbed HTML.

Syntax

wp_filter_oembed_result( string $result, object $data, string $url )

DescriptionDescription

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.

ParametersParameters

$result

(string) (Required) The oEmbed HTML result.

$data

(object) (Required) A data object result from an oEmbed provider.

$url

(string) (Required) The URL of the content to be embedded.

ReturnReturn

(string) The filtered and sanitized oEmbed result.

SourceSource

File: wp-includes/embed.php


			

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.
Scroll to Top