embed_oembed_html WordPress Filter Hook
The embed_oembed_html Wordpress hook allows you to modify the HTML output of an oEmbed. This can be useful for adding custom styling or other modifications.
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
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |