load_image_to_edit()
load_image_to_edit( string $attachment_id, string $mime_type, string $size = ‘full’ )
加载图像资源进行编辑。
Load an image resource for editing.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$attachment_id | (string) | 必需 | 附件ID。 |
$mime_type | (string) | 必需 | 图像mime类型。 |
$size | (string) | 可选 | 图像大小,默认为“完全”。 |
返回(Return)
(resource|false)成功时生成的图像资源,失败时为false。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.9.0 | wp-admin/includes/image.php:919 | 0 | 3 |
load_image_to_edit() 为WP2原创文章,链接:https://www.wp2.cn/functions/load_image_to_edit/