WP_Image_Editor::multi_resize() public WP 3.5.0
Resize multiple images from a single source.
{} Это метод класса: WP_Image_Editor{}
Хуков нет.
Возвращает
Массив
. An array of resized images metadata by size.
Использование
$WP_Image_Editor = new WP_Image_Editor(); $WP_Image_Editor->multi_resize( $sizes );
- $sizes(массив) (обязательный)
An array of image size arrays.
По умолчанию: sizes are 'small', 'medium', 'large'
-
size(массив)
-
width(число)
Image width. -
height(число)
Image height. - crop(true|false)
Optional. Whether to crop the image.
По умолчанию: false
-
-
Список изменений
С версии 3.5.0 | Введена. |
Код WP_Image_Editor::multi_resize() WP Image Editor::multi resize WP 5.7.1
abstract public function multi_resize( $sizes );