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.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.5.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.