WP_Image_Editor::save()
Saves current image to file.
{} It's a method of the class: WP_Image_Editor{}
No Hooks.
Return
Array|WP_Error
. {'path'=>string, 'file'=>string, 'width'=>int, 'height'=>int, 'mime-type'=>string}
Usage
$WP_Image_Editor = new WP_Image_Editor(); $WP_Image_Editor->save( $destfilename, $mime_type );
- $destfilename(string)
- Destination filename.
Default: null - $mime_type(string)
- The mime-type.
Default: null
Changelog
Since 3.5.0 | Introduced. |
Code of WP_Image_Editor::save() WP Image Editor::save WP 6.0
abstract public function save( $destfilename = null, $mime_type = null );