wphooks.info - load_image_to_edit

load_image_to_edit

(trunk - 5.0-alpha-43293)

The hook occurs in the following file:

wp-admin/includes/image.php:
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
	if ( is_resource( $image ) ) {
		/**
		 * Filters the current image being loaded for editing.
		 *
		 * @since 2.9.0
		 *
		 * @param resource $image         Current image.
		 * @param string   $attachment_id Attachment ID.
		 * @param string   $size          Image size.
		 */
		$image = apply_filters( 'load_image_to_edit', $image, $attachment_id, $size );
		if ( function_exists( 'imagealphablending' ) && function_exists( 'imagesavealpha' ) ) {
			imagealphablending( $image, false );
			imagesavealpha( $image, true );
		}
	}
	return $image;
}

/**