Title: wp_image_editor_before_change
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘wp_image_editor_before_change’, WP_Image_Editor $image, array $changes )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_image_editor_before_change/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_image_editor_before_change/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_image_editor_before_change/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_image_editor_before_change/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_image_editor_before_change/?output_format=md#wp--skip-link--target)

Filters the [WP_Image_Editor](https://developer.wordpress.org/reference/classes/wp_image_editor/)
instance before applying changes to the image.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_image_editor_before_change/?output_format=md#parameters)󠁿

 `$image`[WP_Image_Editor](https://developer.wordpress.org/reference/classes/wp_image_editor/)

[WP_Image_Editor](https://developer.wordpress.org/reference/classes/wp_image_editor/)
instance.

`$changes`array

Array of change operations.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_image_editor_before_change/?output_format=md#source)󠁿

    ```php
    $image = apply_filters( 'wp_image_editor_before_change', $image, $changes );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/image-edit.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/image-edit.php#L704)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/image-edit.php#L704-L704)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_image_editor_before_change/?output_format=md#related)󠁿

| Used by | Description | 
| [image_edit_apply_changes()](https://developer.wordpress.org/reference/functions/image_edit_apply_changes/)`wp-admin/includes/image-edit.php` |

Performs group of changes on Editor specified.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_image_editor_before_change/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.5.0](https://developer.wordpress.org/reference/since/3.5.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_image_editor_before_change%2F)
before being able to contribute a note or feedback.