wp_get_attachment_thumb_url


wp_get_attachment_thumb_url ( $post_id = 0 )

Parameters:
  • (int) post_id Optional. Attachment ID. Default is the ID of the global `$post`.
Returns:
  • (string|false) Thumbnail URL on success, false on failure.
Defined at:
Change Log:
  • 6: .

Description

Retrieves URL for an attachment thumbnail.

Related Functions

wp_get_attachment_thumb_file, wp_get_attachment_url, wp_get_attachment_image_url, wp_ajax_set_attachment_thumbnail, wp_get_attachment_image_src

Top Google Results

User discussions

wpseek mobile