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

In this article

This hook has been deprecated. Use {@see ‘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

$image = apply_filters_deprecated( 'image_save_pre', array( $image, $attachment_id ), '3.5.0', 'image_editor_save_pre' );

Changelog

VersionDescription
3.5.0Use 'image_editor_save_pre' instead.
2.9.0Introduced.

User Contributed Notes

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