WP_Image_Editor::save( string $destfilename = null, string $mime_type = null )
Saves current image to file.
Parameters
- $destfilename
-
(string) (Optional)
Default value: null
- $mime_type
-
(string) (Optional)
Default value: null
Return
(array|WP_Error) 'path'=>string, 'file'=>string, 'width'=>int, 'height'=>int, 'mime-type'=>string
Source
File: wp-includes/class-wp-image-editor.php
abstract public function save( $destfilename = null, $mime_type = null );
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_image_editor/save