load_image_to_edit

过滤钩子
apply_filters( 'load_image_to_edit', $image, $attachment_id, $size )
参数
  • (resource|GdImage) $image Current image.
    Required:
  • (int) $attachment_id Attachment ID.
    Required:
  • (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).
    Required:
定义位置
相关勾子
load_image_to_edit_pathload_image_to_edit_attachmenturlload_image_to_edit_filesystempathterms_to_editwp_save_image_editor_file
相关方法
load_image_to_edit_load_image_to_edit_pathformat_to_editget_image_send_to_editorwp_image_editorwp_load_image
引入
2.9.0
弃用
-

load_image_to_edit: 这个函数用来加载一个要在媒体库中编辑的图片。它将图片的附件ID作为参数,并返回一个关于图片的信息数组,例如它的路径、URL和元数据。

过滤正在加载的当前图像进行编辑。

$image = apply_filters( 'load_image_to_edit', $image, $attachment_id, $size );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-14 12:36:31

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: