WP_Image_Editor::get_suffix(): string|false

In this article

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

Return

string|false suffix

Source

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

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

Changelog

VersionDescription
3.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.