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.


Top ↑

Source

File: wp-includes/embed.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.