image_edit_before_change filter-hook . WP 2.9.0
Deprecated in from version 3.5.0. It is no longer supported and can be removed in future releases. See wp_image_editor_before_change.
Deprecated: 3.5.0 Use {@see 'wp_image_editor_before_change'} instead.
Filters the GD image resource before applying changes to the image.
Usage
add_filter( 'image_edit_before_change', 'filter_function_name_3457', 10, 3 ); function filter_function_name_3457( $image, $changes, $string ){ // filter... return $image; }
- $image(resource/GdImage)
- GD image resource or GdImage instance.
- $changes(array)
- Array of change operations.
- $string
- -
Changelog
Since 2.9.0 | Introduced. | |
Deprecated Since 3.5.0 | Use {@see 'wp_image_editor_before_change'} instead. |
Where the hook is called
image_edit_before_change
wp-admin/includes/image-edit.php 588
$image = apply_filters_deprecated( 'image_edit_before_change', array( $image, $changes ), '3.5.0', 'wp_image_editor_before_change' );