Summery Summery
Saves current image to file.
Syntax Syntax
Parameters Parameters
- $destfilename
-
(Optional)
Default value: null
- $mime_type
-
(Optional)
Default value: null
Return Return
(array|WP_Error) 'path'=>string, 'file'=>string, 'width'=>int, 'height'=>int, 'mime-type'=>string
Source Source
File: wp-includes/class-wp-image-editor.php
abstract public function save( $destfilename = null, $mime_type = null );
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |