apply_filters( 'embed_html', string $output, WP_Post $post, int $width, int $height )
- Since
- 4.4.0
Filters the embed HTML output for a given post.
Parameters
$outputstring- The default iframe tag to display embedded content.
$postWP_Post- Current post object.
$widthint- Width of the response.
$heightint- Height of the response.
Fired at · 1
wp-includes/embed.php:534get_post_embed_html()
Source
* * @param string $output The default iframe tag to display embedded content. * @param WP_Post $post Current post object. * @param int $width Width of the response. * @param int $height Height of the response. */ return apply_filters( 'embed_html', $output, $post, $width, $height );} /** * Retrieves the oEmbed response data for a given post. * * @since 4.4.0History
Introduced in 4.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 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.