image_editor_save_pre WordPress Filter Hook
This hook is called just before an image is saved to the database. It provides an opportunity for you to modify the image before it is stored.
apply_filters( 'image_editor_save_pre', WP_Image_Editor $image , int $attachment_id ) #
Filters the WP_Image_Editor instance for the image to be streamed to the browser.
Parameters
- $image
(WP_Image_Editor)The image editor instance.
- $attachment_id
(int)The attachment post ID.
Source
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |