WP_Image_Editor::__construct
Each instance handles a single file.
Method of the class: WP_Image_Editor{}
No Hooks.
Returns
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() WP Image Editor:: construct code WP 7.0
public function __construct( $file ) {
$this->file = $file;
}