W3cubDocs

/WordPress

WP_Image_Editor::__construct( string $file )

Each instance handles a single file.

Parameters

$filestringrequired
Path to the file to load.

Source

public function __construct( $file ) {
	$this->file = $file;
}

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