apply_filters( 'wp_save_image_editor_file', mixed $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.
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) WP_Image_Editor instance.
- $mime_type
-
(string) Image mime type.
- $post_id
-
(int) Post ID.
Source Source
Changelog Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |