WP_Image_Editor::get_suffix()publicWP 3.5.0

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

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.

WP_Image_Editor::get_suffix() code WP 6.5.2

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

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