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.


Parameters

$image_size

(string)Thumbnail image size.

$thumbnail_id

(int)Attachment ID.


Top ↑

Source

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

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
4.5.0Added $thumbnail_id parameter.
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.