wpseek.com
A WordPress-centric search engine for devs and theme authors



post_thumbnail_html › WordPress Filter Hooks

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
  • (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
Defined at:
Codex:

Filters the post thumbnail HTML.





Source

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