WPDev.one
Core Function
View Source on Trac ↗

wp_filter_pre_oembed_result()

wp_filter_pre_oembed_result( mixed $result, mixed $url, mixed $args )

Filters the oEmbed result before any HTTP requests are made.

Parameters 3 required

Name / Type Description
(null

| string) $result The UNSANITIZED (and potentially unsafe) HTML that should be used to embed. Default null.

Required
$url
string

The URL that should be inspected for discovery `<link>` tags.

Required
$args
array

oEmbed remote get arguments.

Required

Return Value

((null)
(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.

Function Information

Since Version
4.5.3
Source File
wp-includes/embed.php
Advertisement