A WordPress-centric search engine for devs and theme authors



post_thumbnail_html ›

Since2.9.0
Deprecatedn/a
apply_filters( 'post_thumbnail_html', $html, $post->ID, $post_thumbnail_id, $size, $attr )
Parameters: (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
Defined at:
Codex:

Filters the post thumbnail HTML.





Source

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