On this page
apply_filters( 'embed_html', string $output, WP_Post $post, int $width, int $height )
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.
Source
File: wp-includes/embed.php. View all references
return apply_filters( 'embed_html', $output, $post, $width, $height );
Related
Used By
| Used By | Description |
|---|---|
| get_post_embed_html() wp-includes/embed.php | Retrieves the embed code for a specific post. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/embed_html