wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



post_thumbnail_html › Les Filtres WordPress

Depuis2.9.0
Dépréciéen/a
apply_filters( 'post_thumbnail_html', $html, $post->ID, $post_thumbnail_id, $size, $attr )
Paramètres: (5)
  • (string) $html The post thumbnail HTML.
    Requis: Oui
  • (int) $post_id The post ID.
    Requis: Oui
  • (int) $post_thumbnail_id The post thumbnail ID, or 0 if there isn't one.
    Requis: Oui
  • (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).
    Requis: Oui
  • (string|array) $attr Query string or array of attributes.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the post thumbnail HTML.





Source

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