WordPress at a glance
function is not described

WP_Image_Editor::multi_resize() public WP 3.5.0

Resize multiple images from a single source.

{} It's a method of the class: WP_Image_Editor{}

No Hooks.

Return

Array. An array of resized images metadata by size.

Usage

$WP_Image_Editor = new WP_Image_Editor();
$WP_Image_Editor->multi_resize( $sizes );
$sizes(array) (required)

An array of image size arrays.

Default: sizes are 'small', 'medium', 'large'

  • size(array)

    • width(int)
      Image width.

    • height(int)
      Image height.

    • crop(true|false)
      Optional. Whether to crop the image.
      Default: false

Changelog

Since 3.5.0 Introduced.

Code of WP_Image_Editor::multi_resize() WP 5.7.2

<?php
abstract public function multi_resize( $sizes );