wp_get_attachment_thumb_file filter-hook . WP 2.1.0
Filters the attachment thumbnail file path.
Usage
add_filter( 'wp_get_attachment_thumb_file', 'filter_function_name_7066', 10, 2 ); function filter_function_name_7066( $thumbfile, $post_id ){ // filter... return $thumbfile; }
- $thumbfile(string)
- File path to the attachment thumbnail.
- $post_id(int)
- Attachment ID.
Changelog
Since 2.1.0 | Introduced. |
Where the hook is called
wp_get_attachment_thumb_file
wp-includes/post.php 6287
return apply_filters( 'wp_get_attachment_thumb_file', $thumbfile, $post->ID );