apply_filters( 'embed_handler_html', string $return, string $url, array $attr )
- Since
- 2.9.0
Filters the returned embed HTML.
Compatibility
- WordPress
- since 2.9.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$returnstring- The HTML result of the shortcode.
$urlstring- The embed URL.
$attrarray- An array of shortcode attributes.
Where this hook fires · 1
wp-includes/class-wp-embed.php:170WP_Embed::get_embed_handler_html()
Source code
* @see WP_Embed::shortcode() * * @param string $return The HTML result of the shortcode. * @param string $url The embed URL. * @param array $attr An array of shortcode attributes. */ return apply_filters( 'embed_handler_html', $return, $url, $attr ); } } } } return false;Changelog
Introduced in 2.9.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
6.8.8
Parameter
$return retyped from string|false to string.verified against source2.9.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.