W3cubDocs

/WordPress

WP_Image_Editor::__construct( string $file )

Each instance handles a single file.

Parameters

$file

(string) (Required) Path to the file to load.

Source

File: wp-includes/class-wp-image-editor.php

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

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