wp_image_editor_before_change WordPress Filter Hook
The wp_image_editor_before_change hook is called before any changes are made to an image. This hook can be used to prevent changes from being made to an image, or to modify the image before it is changed.
apply_filters( 'wp_image_editor_before_change', WP_Image_Editor $image , array $changes ) #
Filters the WP_Image_Editor instance before applying changes to the image.
Parameters
- $image
(WP_Image_Editor)WP_Image_Editor instance.
- $changes
(array)Array of change operations.
Source
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |