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

image_edit_before_change WordPress Hook

The image_edit_before_change hook is triggered before an image is changed. It allows you to modify the image before it is saved to the database.

apply_filters_deprecated( 'image_edit_before_change', resource|GdImage $image, array $changes ) #

Filters the GD image resource before applying changes to the image.


Parameters

$image

(resource|GdImage)GD image resource or GdImage instance.

$changes

(array)Array of change operations.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.5.0Use 'wp_image_editor_before_change' 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.