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
- $image
-
(resource|GdImage) Image resource to be streamed.
- $attachment_id
-
(int) The attachment post ID.
Source
Changelog
Version | Description |
---|---|
3.5.0 | Use 'image_editor_save_pre' instead. |
2.9.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/image_save_pre