apply_filters( ‘oembed_fetch_url’, string $provider, string $url, array $args )

Filters the oEmbed URL to be fetched.

Parameters

$providerstring
URL of the oEmbed provider.
$urlstring
URL of the content to be embedded.
$argsarray
Additional arguments for retrieving embed HTML.
See wp_oembed_get() for accepted arguments. Default empty.
More Arguments from wp_oembed_get( … $args )Additional arguments for retrieving embed HTML.
  • width int|string
    Optional. The maxwidth value passed to the provider URL.
  • height int|string
    Optional. The maxheight value passed to the provider URL.
  • discover bool
    Optional. Determines whether to attempt to discover link tags at the given URL for an oEmbed provider when the provider URL is not found in the built-in providers list. Default true.

Source

$provider = apply_filters( 'oembed_fetch_url', $provider, $url, $args );

Changelog

VersionDescription
4.9.0The dnt (Do Not Track) query parameter was added to all oEmbed provider URLs.
2.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.