WordPress at Your Fingertips
filter is not described

wp_save_image_editor_file filter-hook . WP 3.5.0

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_editor_file', 'filter_function_name_6646', 10, 5 );
function filter_function_name_6646( $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.
The image editor instance.
The mime type of the image.
Attachment post ID.


Since 3.5.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.