WP_Image_Editor::__construct()publicWP 1.0

Each instance handles a single file.

Method of the class: WP_Image_Editor{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Image_Editor = new WP_Image_Editor();
$WP_Image_Editor->__construct( $file );
$file(string) (required)
Path to the file to load.

WP_Image_Editor::__construct() code WP 6.5.2

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