Warning: This hook has been deprecated. Use ‘image_editor_save_pre’ instead.

apply_filters_deprecated( 'image_save_pre', resource|GdImage $image, int $attachment_id )

Filters the GD image resource to be streamed to the browser.

Parameters Parameters


(resource|GdImage) Image resource to be streamed.


(int) The attachment post ID.

Top ↑

Source Source

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

View on Trac

Top ↑

Changelog Changelog

Version Description
3.5.0 Use 'image_editor_save_pre' instead.
2.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.