Filter hook 'embed_oembed_html'

in WP Core File wp-includes/class-wp-embed.php at line 291

Description

Filters the cached oEmbed HTML.

Occurrences

Filename Line Number
wp-includes/class-wp-embed.php 291
wp-includes/class-wp-embed.php 374

Parameters

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

PHP Doc

/**
				 * Filters the cached oEmbed HTML.
				 *
				 * @since 2.9.0
				 *
				 * @see WP_Embed::shortcode()
				 *
				 * @param string|false $cache   The cached HTML result, stored in post meta.
				 * @param string       $url     The attempted embed URL.
				 * @param array        $attr    An array of shortcode attributes.
				 * @param int          $post_id Post ID.
				 */