WordPress at a glance
filter is not described

wp_save_image_file filter-hook . WP 2.9.0

Deprecated in 3.5.0. It is no longer supported and can be removed in future releases. Use wp_save_image_editor_file instead.

Deprecated: 3.5.0 Use 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_3496', 10, 5 );
function filter_function_name_3496( $override, $filename, $image, $mime_type, $post_id ){
	// filter...

	return $override;
Value to return instead of saving.
Default: null
Name of the file to be saved.
WP_Image_Editor instance.
Image mime type.
Post ID.


Since DEL 3.5.0 Introduced.

Where the hook is called

wp-admin/includes/image-edit.php 373
$saved = apply_filters( 'wp_save_image_file', null, $filename, $image, $mime_type, $post_id );

Where the hook is used (in WP core)

Usage not found!