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



post_thumbnail_html › Hooks de Filtros WordPress

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
  • (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
Definido em:
Codex:

Filters the post thumbnail HTML.





Fonte

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