WordPress at a glance
функция не описана

WP_Image_Editor::update_size() protected WP 3.5.0

Sets current image size.

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

Хуков нет.

Возвращает

true.

Использование

// protected - for code of main (parent) or child class
$result = $this->update_size( $width, $height );
$width(int)

Default: null
$height(int)

Default: null

Changelog

Since 3.5.0 Introduced.

Код WP_Image_Editor::update_size() WP 5.5.1

<?php
protected function update_size( $width = null, $height = null ) {
	$this->size = array(
		'width'  => (int) $width,
		'height' => (int) $height,
	);
	return true;
}