Warning: This hook has been deprecated. Use ‘wp_save_image_editor_file’ instead.

apply_filters_deprecated( 'wp_save_image_file', bool|null $override, string $filename, resource|GdImage $image, string $mime_type, int $post_id )

Filters whether to skip saving the image file.


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

Top ↑



(bool|null) Value to return instead of saving. Default null.


(string) Name of the file to be saved.


(resource|GdImage) Image resource or GdImage instance.


(string) The mime type of the image.


(int) Attachment post ID.

Top ↑


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

View on Trac

Top ↑


Version Description
3.5.0 Use 'wp_save_image_editor_file' instead.
2.9.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.