load_image_to_edit()
load_image_to_edit( string $attachment_id, string $mime…
load_image_to_edit( string $attachment_id, string $mime_type, string $size = ‘full’ )
加载图像资源进行编辑。
Load an image resource for editing.
加载图像资源进行编辑。
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 |
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。





还没有任何评论,赶紧来占个楼吧!