Core Function
View Source on Trac ↗ wp_get_attachment_thumb_file()
wp_get_attachment_thumb_file( mixed $post_id = 0 ) Retrieves thumbnail for an attachment.
Parameters 0 required
| Name / Type | Description |
|---|---|
| $post_id int | Optional. Attachment ID. Default is the ID of the global `$post`. |
Return Value
((string)
| false) Thumbnail file path on success, false on failure.
Function Information
Since Version
2.1.0
Source File
wp-includes/deprecated.php
Advertisement