embed_oembed_html WordPress Filter Hook

The embed_oembed_html Wordpress hook allows you to modify the HTML output of an oEmbed. This can be useful for adding custom styling or other modifications.

apply_filters( 'embed_oembed_html', string|false $cache, string $url, array $attr, int $post_ID ) #

Filters the cached oEmbed HTML.


Description

Top ↑

See also


Top ↑

Parameters

$cache

(string|false)The cached HTML result, stored in post meta.

$url

(string)The attempted embed URL.

$attr

(array)An array of shortcode attributes.

$post_ID

(int)Post ID.


Top ↑

Source

File: wp-includes/class-wp-embed.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.9.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.