WP_Image_Editor::__construct()
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() WP Image Editor:: construct code WP 6.6.2
public function __construct( $file ) { $this->file = $file; }