embed_html WordPress Filter Hook
The embed_html Wordpress hook allows you to modify the HTML code that is used to embed your content in other websites. This can be used to change the way your content looks when it is shared on social media, or to add extra functionality to the embedded version of your content.
apply_filters( 'embed_html', string $output , WP_Post $post , int $width , int $height ) #
Filters the embed HTML output for a given post.
Parameters
- $output
(string)The default iframe tag to display embedded content.
- $post
(WP_Post)Current post object.
- $width
(int)Width of the response.
- $height
(int)Height of the response.
Source
File: wp-includes/embed.php
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |