wp_save_image_editor_file WordPress Filter Hook
The wp_save_image_editor_file Wordpress hook is used to save an image editor file. This hook is called when the user clicks the "Save" button in the image editor.
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
Returning a non-null value will short-circuit the save method, returning that value instead.
Parameters
- $override
(bool|null)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
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |