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:

Description

Returns a WP_Image_Editor instance and loads file into it.

Related Functions

wp_image_editor, wp_ajax_image_editor, wp_get_image_mime, get_image_send_to_editor, edit_form_image_editor

Top Google Results

User discussions

wpseek mobile