On this page
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.
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
File: wp-includes/class-wp-oembed.php. View all references
$provider = apply_filters( 'oembed_fetch_url', $provider, $url, $args );
Related
Used By
| Used By | Description |
|---|---|
| WP_oEmbed::fetch() wp-includes/class-wp-oembed.php | Connects to a oEmbed provider and returns the result. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/oembed_fetch_url