WP_Image_Editor::multi_resize( array $sizes ): array
Resize multiple images from a single source.
Parameters
-
$sizes
array Required -
An array of image size arrays. Default sizes are 'small', 'medium', 'large'.
...$0
arraywidth
intImage width.height
intImage height.crop
boolOptional. Whether to crop the image. Default false.
Return
array An array of resized images metadata by size.
Source
File:
wp-includes/class-wp-image-editor.php
. View all referencesabstract public function multi_resize( $sizes );
Changelog
Changelog Version Description 3.5.0 Introduced.
User Contributed Notes