WordPress at Your Fingertips
filter is not described

wp_save_image_file filter-hook . WP 2.9.0

Deprecated from version 3.5.0. It is no longer supported and can be removed in future releases. See wp_save_image_editor_file.

Deprecated: 3.5.0 Use {@see 'wp_save_image_editor_file'} instead.

Filters whether to skip saving the image file.

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


add_filter( 'wp_save_image_file', 'filter_function_name_7074', 10, 3 );
function filter_function_name_7074( $override, $filename, $image ){
	// filter...

	return $override;
Value to return instead of saving.
Default: null
Name of the file to be saved.
The image editor instance.


Since 2.9.0 Introduced.
Deprecated Since 3.5.0 Use {@see 'wp_save_image_editor_file'} instead.

Where the hook is called

wp-admin/includes/image-edit.php 375-380
$saved = apply_filters_deprecated(
	array( null, $filename, $image, $mime_type, $post_id ),

Where in WP core the hook is used WordPress

Usage not found.