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.
Contents
Parameters
- $thumbnail_id
(int|false)Attachment ID, or false if there is none.
Source
Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |