wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



post_thumbnail_html › WordPress Filter Hooks

Da2.9.0
Deprecaton/a
apply_filters( 'post_thumbnail_html', $html, $post->ID, $post_thumbnail_id, $size, $attr )
Parametri: (5)
  • (string) $html The post thumbnail HTML.
    Richiesto:
  • (int) $post_id The post ID.
    Richiesto:
  • (int) $post_thumbnail_id The post thumbnail ID, or 0 if there isn't one.
    Richiesto:
  • (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).
    Richiesto:
  • (string|array) $attr Query string or array of attributes.
    Richiesto:
Definito a:
Codex:

Filters the post thumbnail HTML.





Sorgenti

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