Filters whether to skip saving the image file.
Description
Returning a non-null value will short-circuit the save method, returning that value instead.
Parameters
$overridebool|null- Value to return instead of saving. Default null.
$filenamestring- Name of the file to be saved.
$imageWP_Image_Editor- The image editor instance.
$mime_typestring- The mime type of the image.
$post_idint- Attachment post ID.
Source
$saved = apply_filters( 'wp_save_image_editor_file', null, $filename, $image, $mime_type, $post_id );
Changelog
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.