the_post_thumbnail_url

Advertisement

Summery Summery

Display the post thumbnail URL.

Syntax Syntax

the_post_thumbnail_url( string|array $size = 'post-thumbnail' )

Parameters Parameters

$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'.

Default value: 'post-thumbnail'

Source Source

File: wp-includes/post-thumbnail-template.php

	return wp_get_attachment_image_url( $post_thumbnail_id, $size );
}

/**
 * Display the post thumbnail URL.

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply