wp_get_image_editor() WP 1.0
Returns a WP_Image_Editor instance and loads file into it.
No Hooks.
Return
WP_Image_Editor/WP_Error. The WP_Image_Editor object if successful, an WP_Error object otherwise.
Usage
wp_get_image_editor( $path, $args );
- $path(string) (required)
- Path to the file to load.
- $args(array)
- Additional arguments for retrieving the image editor.
Default: empty array
Code of wp get image editor:
wp-includes/media.php
VER 5.0.3
Related Functions
From tag: Thumbnail (images)
- add_image_size()
- delete_post_thumbnail()
- get_intermediate_image_sizes()
- get_post_thumbnail_id()
- get_the_post_thumbnail()
- get_the_post_thumbnail_caption()
- get_the_post_thumbnail_url()