attachment_submitbox_misc_actions
云策文档标注
概述
attachment_submitbox_misc_actions 是一个 WordPress Hook,在附件编辑屏幕的“保存”元框的“上传于”部分之后触发,用于扩展附件提交表单的功能。
关键要点
- 这是一个 action Hook,在附件编辑界面的“保存”元框中“上传于”部分之后执行。
- 参数 $post 是一个 WP_Post 对象,代表当前附件。
- Hook 在 WordPress 3.5.0 版本引入,4.9.0 版本添加了 $post 参数。
代码示例
do_action( 'attachment_submitbox_misc_actions', $post );注意事项
- 此 Hook 与 attachment_submit_meta_box() 函数相关,该函数用于显示附件提交表单字段。
- 开发者可以利用此 Hook 添加自定义操作或修改附件提交时的行为。
原文内容
Fires after the ‘Uploaded on’ section of the Save meta box in the attachment editing screen.
Parameters
Source
do_action( 'attachment_submitbox_misc_actions', $post );