wordpress / latest / hooks / embed_oembed_html.html

apply_filters( 'embed_oembed_html', string|false $cache, string $url, array $attr, int $post_ID )

Filters the cached oEmbed HTML.

Description

See also

Parameters

$cache string|false
The cached HTML result, stored in post meta.
$url string
The attempted embed URL.
$attr array
An array of shortcode attributes.
$post_ID int
Post ID.

Source

File: wp-includes/class-wp-embed.php. View all references

return apply_filters( 'embed_oembed_html', $cache, $url, $attr, $post_ID );

Changelog

Version Description
2.9.0 Introduced.

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