Summery Summery
Resize multiple images from a single source.
Syntax Syntax
Parameters Parameters
- $sizes
-
(Required) An array of image size arrays. Default sizes are 'small', 'medium', 'large'.
- 'size'
(array)- 'width'
(int) Image width. - 'height'
(int) Image height. - 'crop'
(bool) Optional. Whether to crop the image. Default false.
- 'width'
- 'size'
Return Return
(array) An array of resized images metadata by size.
Source Source
File: wp-includes/class-wp-image-editor.php
abstract public function multi_resize( $sizes );
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |