On this page
apply_filters_deprecated( 'image_save_pre', resource|GdImage $image, int $attachment_id )
This hook has been deprecated. Use ‘image_editor_save_pre’ instead.
Filters the GD image resource to be streamed to the browser.
Parameters
$imageresource|GdImage-
Image resource to be streamed.
$attachment_idint-
The attachment post ID.
Source
File: wp-admin/includes/image-edit.php. View all references
$image = apply_filters_deprecated( 'image_save_pre', array( $image, $attachment_id ), '3.5.0', 'image_editor_save_pre' );
Related
Used By
| Used By | Description |
|---|---|
| wp_save_image_file() wp-admin/includes/image-edit.php | Saves image to file. |
| wp_stream_image() wp-admin/includes/image-edit.php | Streams image in WP_Image_Editor to browser. |
Changelog
| Version | Description |
|---|---|
| 3.5.0 | Use 'image_editor_save_pre' instead. |
| 2.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/image_save_pre