WP_Image_Editor::get_size()publicWP 3.5.0

Gets dimensions of image.

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

No Hooks.

Return

Int[]. Dimensions of the image.

Usage

$WP_Image_Editor = new WP_Image_Editor();
$WP_Image_Editor->get_size();

Changelog

Since 3.5.0 Introduced.

Code of WP_Image_Editor::get_size() WP 5.9.3

public function get_size() {
	return $this->size;
}