embed_thumbnail_image_shape
apply_filters( ’embed_thumbnail_image_shape’, string $shape , int $thumbnail_id )
筛选挂钩:筛选缩略图形状以在嵌入模板中使用。
Filter Hook: Filters the thumbnail shape for use in the embed template.
说明(Description)
矩形图像显示在标题上方,而方形图像显示在内容旁边。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$shape | (string) | 缩略图图像形状。“矩形”或“方形”。 |
$thumbnail_id | (int) | 附件ID。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.5.0 | wp-includes/theme-compat/embed-content.php:75 | 0 | 0 |
embed_thumbnail_image_shape 为WP2原创文章,链接:https://www.wp2.cn/hook/embed_thumbnail_image_shape/