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.
widthint|stringOptional. Themaxwidthvalue passed to the provider URL.heightint|stringOptional. Themaxheightvalue passed to the provider URL.discoverboolOptional. 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/