Filters the post thumbnail HTML.
$htmlstring$post_idint$post_thumbnail_idint$sizestring|int[]$attrstring|arraywp-includes/post-thumbnail-template.php:236get_the_post_thumbnail()<?php * @param int $post_id The post ID. * @param int $post_thumbnail_id The post thumbnail ID, or 0 if there isn't one. * @param 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). * @param string|array $attr Query string or array of attributes. */ return apply_filters( 'post_thumbnail_html', $html, $post->ID, $post_thumbnail_id, $size, $attr );} /** * Returns the post thumbnail URL. * * @since 4.4.0Introduced in 2.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.