get_media_item()
get_media_item( int $attachment_id, string|array $args = null )
检索HTML表单以修改图像附件。
Retrieve HTML form for modifying the image attachment.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$attachment_id | (int) | 必需 | 修改附件ID。 |
$args | (string | array) | 可选 | 覆盖默认值。 |
返回(Return)
(string)用于附件的HTML表单。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.5.0 | wp-admin/includes/media.php:1549 | 1 function | 32 |
get_media_item() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_media_item/