WP_Image_Editor::get_suffix()publicWP 3.5.0

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

{} Это метод класса: WP_Image_Editor{}

Хуков нет.

Возвращает

Строку|false. suffix

Использование

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

Список изменений

С версии 3.5.0 Введена.

Код WP_Image_Editor::get_suffix() WP 6.1.1

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

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