Filters the post thumbnail HTML.
$htmlstring
$post_idint
$post_thumbnail_idint
$sizestring|int[]
$attrstring|array
return apply_filters( 'post_thumbnail_html', $html, $post->ID, $post_thumbnail_id, $size, $attr );
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/post_thumbnail_html