wp_get_image_editor

SummerySummery

Returns a WP_Image_Editor instance and loads file into it.

Syntax

wp_get_image_editor( string $path, array $args = array() )

ParametersParameters

$path

(string) (Required) Path to the file to load.

$args

(array) (Optional) Additional arguments for retrieving the image editor.

Default value: array()

ReturnReturn

(WP_Image_Editor|WP_Error) The WP_Image_Editor object if successful, an WP_Error object otherwise.

SourceSource

File: wp-includes/media.php


			

ChangelogChangelog

Changelog
Version Description
3.5.0 Introduced.
Scroll to Top