WP_Image_Editor::__construct()
Each instance handles a single file.
{} It's a method of the class: WP_Image_Editor{}
No Hooks.
Return
null
. Nothing.
Usage
$WP_Image_Editor = new WP_Image_Editor(); $WP_Image_Editor->__construct( $file );
- $file(string) (required)
- Path to the file to load.
Code of WP_Image_Editor::__construct() WP Image Editor:: construct WP 6.0
public function __construct( $file ) { $this->file = $file; }