Uma área de pesquisa sobre o WordPress para devs e autores do tema



post_thumbnail_html ›

Desde2.9.0
Obsoleton/a
apply_filters( 'post_thumbnail_html', $html, $post->ID, $post_thumbnail_id, $size, $attr )
Parâmetros: (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
Definido em:
Codex:

Filters the post thumbnail HTML.





Fonte

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