WP_Image_Editor_GD::__destruct()publicWP 1.0

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

Хуков нет.

Возвращает

null. Ничего.

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

$WP_Image_Editor_GD = new WP_Image_Editor_GD();
$WP_Image_Editor_GD->__destruct();

Код WP_Image_Editor_GD::__destruct() WP 6.0.2

public function __destruct() {
	if ( $this->image ) {
		// We don't need the original in memory anymore.
		imagedestroy( $this->image );
	}
}