wp-includes/class-wp-image-editor-gd.php:472Saves current in-memory image to file.
$destfilenamestring|nulloptionalnull$mime_typestring|nulloptionalnullarray|WP_Error$pathstring
$filestring
$widthint
$heightint
$mime-typestring
$filesizeint
public function save( $destfilename = null, $mime_type = null ) { $saved = $this->_save( $this->image, $destfilename, $mime_type ); if ( ! is_wp_error( $saved ) ) { $this->file = $saved['path']; $this->mime_type = $saved['mime-type']; } return $saved; }Introduced in 3.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/class-wp-image-editor-gd.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.