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
Description Description
Returning a non-null value will short-circuit the save method, returning that value instead.
Parameters Parameters
- $override
-
(mixed) Value to return instead of saving. Default null.
- $filename
-
(string) Name of the file to be saved.
- $image
-
(WP_Image_Editor) The image editor instance.
- $mime_type
-
(string) The mime type of the image.
- $post_id
-
(int) Attachment post ID.
Source Source
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.5.0 | Use 'wp_save_image_editor_file' instead. |
2.9.0 | Introduced. |