wp_create_thumbnail()
Устарела с версии 3.5.0. Больше не поддерживается и может быть удалена. Используйте image_resize().
This was once used to create a thumbnail from an Image given a maximum side size.
Хуки из функции
Возвращает
string. Thumbnail path on success, Error string on failure.
Использование
wp_create_thumbnail( $file, $max_side, $deprecated );
- $file(разное) (обязательный)
- Filename of the original image, Or attachment ID.
- $max_side(int) (обязательный)
- Maximum length of a single side for the thumbnail.
- $deprecated(разное)
- Never used.
По умолчанию:''
Заметки
| Смотрите: image_resize() |
Список изменений
| С версии 1.2.0 | Введена. |
| Устарела с 3.5.0 | Use image_resize() |
Код wp_create_thumbnail() wp create thumbnail WP 7.1
function wp_create_thumbnail( $file, $max_side, $deprecated = '' ) {
_deprecated_function( __FUNCTION__, '3.5.0', 'image_resize()' );
return apply_filters( 'wp_create_thumbnail', image_resize( $file, $max_side, $max_side ) );
}