load_image_to_edit
load_image_to_edit ( $attachment_id, $mime_type, $size = 'full' )
Parameters:- (int) attachment_id Attachment ID.
- (string) mime_type Image mime type.
- (string|int[]) size Optional. Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order). Default 'full'.
Returns:- (resource|GdImage|false) The resulting image resource or GdImage instance on success, false on failure.
Defined at: - Introduced in WordPress: 2.9.0
- Deprecated in WordPress: —
Description
Loads an image resource for editing.