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



post_thumbnail_html › WordPress过滤钩子

Since2.9.0
已弃用n/a
apply_filters( 'post_thumbnail_html', $html, $post->ID, $post_thumbnail_id, $size, $attr )
参数: (5)
  • (string) $html The post thumbnail HTML.
    Required: Yes
  • (int) $post_id The post ID.
    Required: Yes
  • (int) $post_thumbnail_id The post thumbnail ID, or 0 if there isn't one.
    Required: Yes
  • (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
  • (string|array) $attr Query string or array of attributes.
    Required: Yes
定义在:
文档:

Filters the post thumbnail HTML.





源码

return apply_filters( 'post_thumbnail_html', $html, $post->ID, $post_thumbnail_id, $size, $attr );