Deprecated Deprecated

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

Summery Summery

Filters whether to skip saving the image file.

Syntax Syntax

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

Description Description

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

Parameters Parameters


(mixed) Value to return instead of saving. Default null.


(string) Name of the file to be saved.


(WP_Image_Editor) The image editor instance.


(string) The mime type of the image.


(int) Attachment post ID.

Source Source

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


Changelog Changelog

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


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.