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

image_save_pre WordPress Hook

The image_save_pre hook is triggered before an image is saved to the database. It can be used to modify the image before it is saved.

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

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.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.5.0Use 'image_editor_save_pre' instead.
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.