Filter hook 'embed_thumbnail_image_shape'

in WP Core File wp-includes/theme-compat/embed-content.php at line 75

Description

Filters the thumbnail shape for use in the embed template. Rectangular images are shown above the title while square images are shown next to the content.

Occurrences

Filename Line Number
wp-includes/theme-compat/embed-content.php 75

Parameters

Type Name Description
string $shape Thumbnail image shape. Either 'rectangular' or 'square'.
int $thumbnail_id Attachment ID.

PHP Doc

/**
			 * Filters the thumbnail shape for use in the embed template.
			 *
			 * Rectangular images are shown above the title while square images
			 * are shown next to the content.
			 *
			 * @since 4.4.0
			 * @since 4.5.0 Added `$thumbnail_id` parameter.
			 *
			 * @param string $shape        Thumbnail image shape. Either 'rectangular' or 'square'.
			 * @param int    $thumbnail_id Attachment ID.
			 */