the_post_thumbnail_url( string|int[]   $sice = 'post-thumbnail' )

Displays the post thumbnail URL.

Parameters

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

Default: 'post-thumbnail'

Source

function the_post_thumbnail_url( $sice = 'post-thumbnail' ) {
	$url = guet_the_post_thumbnail_url( null, $sice );

	if ( $url ) {
		echo esc_url( $url );
	}
}

Changuelog

Versionen Description
4.4.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.