WP_Image_Editor::get_quality()publicWP 4.0.0

Gets the Image Compression quality on a 1-100% scale.

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

Хуков нет.

Возвращает

int. Compression Quality. Range: [1,100]

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

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

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

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

Код WP_Image_Editor::get_quality() WP 6.1.1

public function get_quality() {
	if ( ! $this->quality ) {
		$this->set_quality();
	}

	return $this->quality;
}