WP_Image_Editor_GD::__destruct
Метод класса: WP_Image_Editor_GD{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_Image_Editor_GD = new WP_Image_Editor_GD(); $WP_Image_Editor_GD->__destruct();
Код WP_Image_Editor_GD::__destruct() WP Image Editor GD:: destruct WP 7.1
public function __destruct() {
if ( $this->image ) {
if ( PHP_VERSION_ID < 80000 ) { // imagedestroy() has no effect as of PHP 8.0.
// We don't need the original in memory anymore.
imagedestroy( $this->image );
}
}
}