过滤缩略图形状以在嵌入模板中使用。
原型
apply_filters( 'embed_thumbnail_image_shape', string $shape, int $thumbnail_id )
描述
矩形图像显示在标题上方,而方形图像显示在内容旁边。
参数
$shape
(string)
缩略图图像形状。 “矩形”或“方形”。
$thumbnail_id
(int)
附件ID。
源文件
路径:wp-includes/theme-compat/embed-content.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/embed_thumbnail_image_shape/