wp_create_thumbnail хук-фильтр . WP 1.2.0
Запрещен (устарел) с версии 3.5.0. Больше не поддерживается и может быть удален. Используйте image_resize()
.
Deprecated: 3.5.0 Use image_resize()
This was once used to create a thumbnail from an Image given a maximum side size.
Использование
add_filter( 'wp_create_thumbnail', 'filter_function_name_5216' ); function filter_function_name_5216( $file ){ // filter... return $file; }
- $file(смешанный)
- Filename of the original image, Or attachment ID.
Список изменений
С версии 1.2.0 | Введена. |
Устарела с 3.5.0 | Use image_resize() |
Где вызывается хук
wp_create_thumbnail
wp-admin/includes/deprecated.php 1128
return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );