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



post_thumbnail_html ›

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
  • (string) $post_thumbnail_id The post thumbnail ID.
    Required: Yes
  • (string|array) $size The post thumbnail size. Image size or array of width and height values (in that order). Default 'post-thumbnail'.
    Required: Yes
  • (string) $attr Query string of attributes.
    Required: Yes
定义在:
文档:

Filters the post thumbnail HTML.





源码

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