W3cubDocs

/WordPress

WP_Image_Editor_GD::make_image( string $filename, callable $callback, array $arguments ): bool

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

Parameters

$filenamestringrequired
$callbackcallablerequired
$argumentsarrayrequired

Return

bool

Source

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

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

Changelog

Version Description
3.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_image_editor_gd/make_image