wphooks.info - load_image_to_edit

load_image_to_edit

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-admin/includes/image.php:
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
	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;
}

/**