diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index 8a59d68865..72a26ed0af 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -162,6 +162,8 @@ class WP_oEmbed { $provider = add_query_arg( 'maxwidth', (int) $args['width'], $provider ); $provider = add_query_arg( 'maxheight', (int) $args['height'], $provider ); $provider = add_query_arg( 'url', urlencode($url), $provider ); + + $provider = apply_filters( 'oembed_fetch_url', $provider, $args, $url ); foreach( array( 'json', 'xml' ) as $format ) { $result = $this->_fetch_with_format( $provider, $format );