WordPress at a glance
function is not described

WP_Image_Editor::get_suffix() public WP 3.5.0

Builds and returns proper suffix for file based on height and width.

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

No Hooks.

Return

String/false. suffix

Usage

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

Changelog

Since 3.5.0 Introduced.

Code of WP_Image_Editor::get_suffix() WP 5.5.1

<?php
public function get_suffix() {
	if ( ! $this->get_size() ) {
		return false;
	}

	return "{$this->size['width']}x{$this->size['height']}";
}