wp_get_attachment_thumb_file хук-фильтр . WP 2.1.0
Filters the attachment thumbnail file path.
Использование
add_filter( 'wp_get_attachment_thumb_file', 'filter_function_name_641', 10, 2 ); function filter_function_name_641( $thumbfile, $post_id ){ // filter... return $thumbfile; }
- $thumbfile(строка)
- File path to the attachment thumbnail.
- $post_id(число)
- Attachment ID.
Список изменений
С версии 2.1.0 | Введена. |
Где вызывается хук
wp_get_attachment_thumb_file
wp-includes/post.php 6287
return apply_filters( 'wp_get_attachment_thumb_file', $thumbfile, $post->ID );