apply_filters( 'wp_save_image_editor_file', bool|null $override, string $filename, WP_Image_Editor $image, string $mime_type, int $post_id )

Filters whether to skip saving the image file.

Description Description

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

Top ↑

Parameters Parameters


(bool|null) 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.

Top ↑

Source Source

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

View on Trac

Top ↑

Changelog Changelog

Version Description
3.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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