WP_Image_Editor_GD::make_image()protectedWP 3.5.0

Either calls editor's save function or handles file as a stream.

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

Хуков нет.

Возвращает

true|false.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->make_image( $filename, $callback, $arguments );
$filename(строка) (обязательный)
-
$callback(callable) (обязательный)
-
$arguments(массив) (обязательный)
-

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

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

Код WP_Image_Editor_GD::make_image() WP 6.5.2

protected function make_image( $filename, $callback, $arguments ) {
	if ( wp_is_stream( $filename ) ) {
		$arguments[1] = null;
	}

	return parent::make_image( $filename, $callback, $arguments );
}