Core Function
View Source on Trac ↗ wp_get_image_editor()
wp_get_image_editor( mixed $path, mixed $args = array() ) Returns a WP_Image_Editor instance and loads file into it.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $path string | Path to the file to load. Required |
| array | $args Optional. Additional arguments for retrieving the image editor. Default empty array. Required |
Return Value
((WP_Image_Editor)
(WP_Image_Editor | WP_Error) The WP_Image_Editor object on success,
a WP_Error object otherwise.
Function Information
Since Version
3.5.0
Source File
wp-includes/media.php
Advertisement