apply_filters( ’embed_thumbnail_image_shape’, string $shape, int $thumbnail_id )

In this article

Filters the thumbnail shape for use in the embed template.

Description

Rectangular images are shown above the title while square images are shown next to the content.

Parameters

$shapestring
Thumbnail image shape. Either 'rectangular' or 'square'.
$thumbnail_idint
Attachment ID.

Source

$shape = apply_filters( 'embed_thumbnail_image_shape', $shape, $thumbnail_id );

Changelog

VersionDescription
4.5.0Added $thumbnail_id parameter.
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.