W3cubDocs

/WordPress

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.

Description

Parameters

$image

(WP_Image_Editor) The image editor instance.

$attachment_id

(int) The attachment post ID.

Source

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

View on Trac

Changelog

Version Description
3.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/image_editor_save_pre