WordPress at a glance
функция не описана

WP_Image_Editor::save() public WP 3.5.0

Saves current image to file.

It's a method of the class: WP_Image_Editor{}

Хуков нет.

Возвращает

Array/WP_Error. {'path'=>string, 'file'=>string, 'width'=>int, 'height'=>int, 'mime-type'=>string}

Использование

$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.

Код WP_Image_Editor::save() WP 5.5.1

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