WordPress at a glance
function is not described

WP_Image_Editor::save() public WP 3.5.0

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)
-
$mime_type(string)
-

Changelog

Since 3.5.0 Introduced.

Code of WP_Image_Editor::save() WP 5.7.2

<?php
abstract public function save( $destfilename = null, $mime_type = null );