wp_get_attachment_thumb_url WordPress Filter Hook
The wp_get_attachment_thumb_url hook is used to get the URL for an attachment's thumbnail. This hook can be used in a theme or a plugin to get the URL of an attachment's thumbnail.
apply_filters( 'wp_get_attachment_thumb_url', string $url , int $post_id ) #
Filters the attachment thumbnail URL.
Parameters
- $url
(string)URL for the attachment thumbnail.
- $post_id
(int)Attachment ID.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |