WordPress at a glance
filter is not described

oembed_fetch_url filter-hook . WP 2.9.0

Filters the oEmbed URL to be fetched.


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

	return $provider;
URL of the oEmbed provider.
URL of the content to be embedded.
Optional arguments, usually passed from a shortcode.

Список изменений

С версии 2.9.0 Введена.
С версии 4.9.0 The dnt (Do Not Track) query parameter was added to all oEmbed provider URLs.

Где вызывается хук

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

Где используется хук в ядре WordPress

Использование не найдено.