W3cubDocs

/WordPress

apply_filters( ’embed_oembed_html’, string|false $cache, string $url, array $attr, int $post_id )

Filters the cached oEmbed HTML.

Description

See also

Parameters

$cachestring|false
The cached HTML result, stored in post meta.
$urlstring
The attempted embed URL.
$attrarray
An array of shortcode attributes.
$post_idint
Post ID.

Source

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

Changelog

Version Description
2.9.0 Introduced.

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