Tags

,

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

wp_get_attachment_image_src( $attachment_id, $size, $icon );

wp_get_attachment_image_src( get_post_thumbnail_id(), ‘full’, false )[0];

  • [0] => url
  • [1] => width
  • [2] => height
  • [3] => boolean: true if $url is a resized image, false if it is the original or if no image is available
Advertisements