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



post_thumbnail_size › WordPress过滤钩子

Since4.9.0
已弃用n/a
apply_filters( 'post_thumbnail_size', $size, $post->ID )
参数: (2)
  • (string|int[]) $size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
    Required: Yes
  • (int) $post_id The post ID.
    Required: Yes
定义在:
文档:

Filters the post thumbnail size.





源码

$size = apply_filters( 'post_thumbnail_size', $size, $post->ID );