get_the_post_thumbnail_url


get_the_post_thumbnail_url ( $post = null, $size = 'post-thumbnail' )

Parameters:
  • (int|WP_Post) $post Optional. Post ID or WP_Post object. Default is global `$post`.
  • (string|array) $size Optional. Registered image size to retrieve the source for or a flat array of height and width dimensions. Default 'post-thumbnail'.
Returns:
  • (string|false) Post thumbnail URL or false if no URL is available.
Defined at:

Description

Return the post thumbnail URL.

Related Functions

get_the_post_thumbnail, the_post_thumbnail_url, the_post_thumbnail, get_the_post_thumbnail_caption, get_post_thumbnail_id

Top Google Results

User discussions

wpseek mobile