Filter hook 'load_image_to_edit'

in WP Core File wp-admin/includes/image.php at line 1137

Description

Filters the current image being loaded for editing.

Occurrences

Filename Line Number
wp-admin/includes/image.php 1137

Parameters

Type Name Description
resource|GdImage $image Current image.
int $attachment_id Attachment ID.
string|int[] $size Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).

PHP Doc

/**
		 * Filters the current image being loaded for editing.
		 *
		 * @since 2.9.0
		 *
		 * @param resource|GdImage $image         Current image.
		 * @param int              $attachment_id Attachment ID.
		 * @param string|int[]     $size          Requested image size. Can be any registered image size name, or
		 *                                        an array of width and height values in pixels (in that order).
		 */