image_attachment_fields_to_edit()
云策文档标注
概述
image_attachment_fields_to_edit() 是一个 WordPress 函数,用于在编辑图像附件时检索表单字段。它允许开发者自定义或扩展图像附件的编辑界面。
关键要点
- 函数名:image_attachment_fields_to_edit()
- 参数:$form_fields(数组,必需),$post(对象,必需)
- 返回值:数组
- 引入版本:WordPress 2.5.0
原文内容
Retrieves the image attachment fields to edit form fields.
Parameters
$form_fieldsarrayrequired$postobjectrequired
Source
function image_attachment_fields_to_edit( $form_fields, $post ) {
return $form_fields;
}
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |