WP_Image_Editor::__construct() WordPress Method

The WP_Image_Editor::__construct() function is used to create a new image editor object. This function takes two parameters: a source image and a destination image. The source image is the path to the image you want to edit. The destination image is the path to where you want to save the edited image.

WP_Image_Editor::__construct( string $file ) #

Each instance handles a single file.


Parameters

$file

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


Top ↑

Source

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

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.