apply_filters( 'oembed_result', string|false $data, string $url, string|array $args )

Filters the HTML returned by the oEmbed provider.

Parameters

$data

(string|false) The returned oEmbed HTML (false if unsafe).

$url

(string) URL of the content to be embedded.

$args

(string|array) Additional arguments for retrieving embed HTML. See wp_oembed_get() for accepted arguments. Default empty.

Source

File: wp-includes/class-wp-oembed.php

View on Trac

Changelog

Version Description
2.9.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/oembed_result