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)
Default: null- $mime_type(string)
Default: null
Changelog
Since 3.5.0 | Introduced. |
Code of WP_Image_Editor::save() WP Image Editor::save WP 5.6
abstract public function save( $destfilename = null, $mime_type = null );