wp_get_attachment_thumb_url() WP 1.0
Retrieve URL for an attachment thumbnail.
Works based on: image_downsize()
1 time = 0.001119s = very slow | 50000 times = 6.09s = fast | PHP 7.0.8, WP 4.6
Hooks from the function
Return
String/false. False on failure. Thumbnail URL on success.
Usage
wp_get_attachment_thumb_url( $post_id );
- $post_id(int)
- Attachment ID.
Default: 0
Changelog
Since 2.1.0 | Introduced. |
Code of wp_get_attachment_thumb_url() wp get attachment thumb url WP 5.6
Related Functions
From tag: Thumbnail (images)
- add_image_size()
- delete_post_thumbnail()
- get_intermediate_image_sizes()
- get_post_thumbnail_id()
- get_the_post_thumbnail()
- get_the_post_thumbnail_caption()
- get_the_post_thumbnail_url()