wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



post_thumbnail_html › WordPress Filter Hooks

Seit2.9.0
Veraltetn/v
apply_filters( 'post_thumbnail_html', $html, $post->ID, $post_thumbnail_id, $size, $attr )
Parameter: (5)
  • (string) $html The post thumbnail HTML.
    Erforderlich: Ja
  • (int) $post_id The post ID.
    Erforderlich: Ja
  • (int) $post_thumbnail_id The post thumbnail ID, or 0 if there isn't one.
    Erforderlich: Ja
  • (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).
    Erforderlich: Ja
  • (string|array) $attr Query string or array of attributes.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the post thumbnail HTML.





Quellcode

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