submitpage_box
云策文档标注
概述
submitpage_box 是一个 WordPress 钩子,在输出 'page' 文章类型的 'side' 上下文元框之前触发。它允许开发者在页面编辑侧边栏元框显示前执行自定义代码。
关键要点
- 钩子名称:submitpage_box
- 触发时机:在输出 'page' 文章类型的 'side' 上下文元框之前
- 参数:$post(WP_Post 对象,表示当前页面)
- 引入版本:WordPress 2.5.0
- 源调用:do_action( 'submitpage_box', $post )
原文内容
Fires before meta boxes with ‘side’ context are output for the ‘page’ post type.
Description
The submitpage box is a meta box with ‘side’ context, so this hook fires just before it is output.
Parameters
$postWP_Post-
Post object.
Source
do_action( 'submitpage_box', $post );
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |