wp_get_image_editor
wp_get_image_editor ( $path, $args = array() )
Parameters:- (string) path Path to the file to load.
- (array) args Optional. Additional arguments for retrieving the image editor. Default empty array.
Returns:- (WP_Image_Editor|WP_Error) The WP_Image_Editor object on success, a WP_Error object otherwise.
Defined at: - Introduced in WordPress: 3.5.0
- Deprecated in WordPress: —
Description
Returns a WP_Image_Editor instance and loads file into it.