embed_thumbnail_image_size WordPress Filter Hook
The embed_thumbnail_image_size hook allows you to change the default thumbnail image size for WordPress embeds. This can be useful if you want to change the size of the thumbnail image on your blog or website.
apply_filters( 'embed_thumbnail_image_size', string $image_size , int $thumbnail_id ) #
Filters the thumbnail image size for use in the embed template.
Contents
Parameters
- $image_size
(string)Thumbnail image size.
- $thumbnail_id
(int)Attachment ID.
Source
Changelog
Version | Description |
---|---|
4.5.0 | Added $thumbnail_id parameter. |
4.4.0 | Introduced. |