WordPress at a glance
function is not described

WP_Image_Editor::get_size() public WP 3.5.0

Gets dimensions of image.

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

No Hooks.

Return

Array. Dimensions of the image.

  • width (int)
    The image width.

  • height (int)
    The image height.

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.5.1

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