Filters the oEmbed URL to be fetched.
Parameters
$provider
string- URL of the oEmbed provider.
$url
string- URL of the content to be embedded.
$args
array- 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|stringOptional. Themaxwidth
value passed to the provider URL.height
int|stringOptional. Themaxheight
value passed to the provider URL.discover
boolOptional. 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 );
WordPress actually caches the oembed results, so if you’re using this but not seeing it take effect immediately, try clearing those out like this: https://siteorigin.com/clearing-oembed-cache/