On this page
WP_Image_Editor::get_size(): int[]
Gets dimensions of image.
Return
int[] Dimensions of the image.
widthintThe image width.heightintThe image height.
Source
File: wp-includes/class-wp-image-editor.php. View all references
public function get_size() {
return $this->size;
}
Related
Used By
| Used By | Description |
|---|---|
| WP_Image_Editor::get_suffix() wp-includes/class-wp-image-editor.php | Builds and returns proper suffix for file based on height and width. |
Changelog
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_image_editor/get_size