WP_Image_Editor::save

SummerySummery

Saves current image to file.

Syntax

WP_Image_Editor::save( string $destfilename = null, string $mime_type = null )

ParametersParameters

$destfilename

(string) (Optional)

Default value: null

$mime_type

(string) (Optional)

Default value: null

ReturnReturn

(array|WP_Error) 'path'=>string, 'file'=>string, 'width'=>int, 'height'=>int, 'mime-type'=>string

SourceSource

File: wp-includes/class-wp-image-editor.php


			

ChangelogChangelog

Changelog
Version Description
3.5.0 Introduced.
Scroll to Top