This hook has been deprecated. Use wp_save_image_editor_file instead.

apply_filters( 'wp_save_image_file', mixed $override, string $filename, WP_Image_Editor $image, string $mime_type, int $post_id )

Filters whether to skip saving the image file.


Description

Returning a non-null value will short-circuit the save method, returning that value instead.


Parameters

$override

Value to return instead of saving. Default null.

$filename

Name of the file to be saved.

$image

WP_Image_Editor instance.

$mime_type

Image mime type.

$post_id

Post ID.


Source

File: wp-admin/includes/image-edit.php

View on GitHub



Changelog

Changelog
Version Description
WP-3.5.0 Use wp_save_image_editor_file instead.
WP-2.9.0 Introduced. This hook has been deprecated. Use wp_save_image_editor_file instead.