wpseek.com
WordPress开发者和主题制作者的搜索引擎



embed_thumbnail_image_shape › WordPress过滤钩子

Since4.5.0
已弃用n/a
apply_filters( 'embed_thumbnail_image_shape', $shape, $thumbnail_id )
参数: (2)
  • (string) $shape Thumbnail image shape. Either 'rectangular' or 'square'.
    Required: Yes
  • (int) $thumbnail_id Attachment ID.
    Required: Yes
定义在:
文档:

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.





源码

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