wphooks.info - wp_image_editor_before_change

wp_image_editor_before_change

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-admin/includes/image-edit.php:
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
	if ( $image instanceof WP_Image_Editor ) {

		/**
		 * Filters the WP_Image_Editor instance before applying changes to the image.
		 *
		 * @since 3.5.0
		 *
		 * @param WP_Image_Editor $image   WP_Image_Editor instance.
		 * @param array           $changes Array of change operations.
		 */
		$image = apply_filters( 'wp_image_editor_before_change', $image, $changes );
	} elseif ( is_resource( $image ) ) {

		/**
		 * Filters the GD image resource before applying changes to the image.
		 *
		 * @since 2.9.0
		 * @deprecated 3.5.0 Use wp_image_editor_before_change instead.
		 *
		 * @param resource $image   GD image resource.