edit_page_form
云策文档标注
概述
edit_page_form 是一个 WordPress 动作钩子,在页面('page' 文章类型)的 'normal' 上下文元框输出后触发。它允许开发者在页面编辑表单中添加自定义功能。
关键要点
- 这是一个动作钩子,用于在页面编辑界面中执行自定义代码。
- 触发时机:在 'normal' 上下文元框输出之后。
- 参数:$post(WP_Post 对象),表示当前正在编辑的页面。
- 源代码:do_action( 'edit_page_form', $post );
- 引入版本:WordPress 1.5.0。
原文内容
Fires after ‘normal’ context meta boxes have been output for the ‘page’ post type.
Parameters
$postWP_Post-
Post object.
Source
do_action( 'edit_page_form', $post );
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |