WPDev.one
Core Function
View Source on Trac ↗

the_post_thumbnail_url()

the_post_thumbnail_url( mixed $size = 'post-thumbnail' )

Displays the post thumbnail URL.

Parameters 1 required

Name / Type Description
mixed

(string | int[]) $size Optional. Image size to use. Accepts any valid image size, or an array of width and height values in pixels (in that order). Default 'post-thumbnail'.

Required

Return Value

(void)
No return value description available.

Function Information

Since Version
4.4.0
Source File
wp-includes/post-thumbnail-template.php
Advertisement