WP_Image_Editor::update_size( int $width = null, int $height = null ): true

In this article

Sets current image size.

Parameters

$widthintoptional

Default:null

$heightintoptional

Default:null

Return

true

Source

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

Changelog

VersionDescription
3.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.