embed_thumbnail_id WordPress Filter Hook

The embed_thumbnail_id hook is used to change the thumbnail image that is used when an post is embedded in another post or page.

apply_filters( 'embed_thumbnail_id', int|false $thumbnail_id ) #

Filters the thumbnail image ID for use in the embed template.


Parameters

$thumbnail_id

(int|false)Attachment ID, or false if there is none.


Top ↑

Source

File: wp-includes/theme-compat/embed-content.php

View on Trac


Top ↑

Changelog

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