WordPress at a glance
filter is not described

oembed_fetch_url filter-hook . WP 2.9.0

Filters the oEmbed URL to be fetched.

Usage

add_filter( 'oembed_fetch_url', 'filter_function_name_3771', 10, 3 );
function filter_function_name_3771( $provider, $url, $args ){
	// filter...

	return $provider;
}
$provider(string)
URL of the oEmbed provider.
$url(string)
URL of the content to be embedded.
$args(array)
Optional arguments, usually passed from a shortcode.

Notes

  • Since 4.9.0 The dnt (Do Not Track) query parameter was added to all oEmbed provider URLs.

Where the hook is called

WP_oEmbed::fetch()
oembed_fetch_url
wp-includes/class-oembed.php 526
$provider = apply_filters( 'oembed_fetch_url', $provider, $url, $args );

Where the hook is used (in WP core)

Does not used.