Filters the post thumbnail URL.
$thumbnail_urlstring|false$postint|WP_Post|null$sizestring|int[]wp-includes/post-thumbnail-template.php:269get_the_post_thumbnail_url() * * @param string|false $thumbnail_url Post thumbnail URL or false if the post does not exist. * @param int|WP_Post|null $post Post ID or WP_Post object. Default is global `$post`. * @param string|int[] $size Registered image size to retrieve the source for or a flat array * of height and width dimensions. Default 'post-thumbnail'. */ return apply_filters( 'post_thumbnail_url', $thumbnail_url, $post, $size );} /** * Displays the post thumbnail URL. * * @since 4.4.0Introduced in 5.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.