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.
Contents
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; }
Expand full source codeCollapse full source codeView on TracView on GitHub