dbx_post_sidebar
云策文档标注
概述
dbx_post_sidebar 是一个 WordPress 动作钩子,在文章编辑页面中所有元框部分输出后、关闭 #post-body div 前触发,允许开发者在侧边栏区域执行自定义操作。
关键要点
- 触发时机:在所有元框部分输出后、#post-body div 关闭前
- 参数:$post(WP_Post 对象,表示当前文章)
- 用法:通过 do_action('dbx_post_sidebar', $post) 调用
- 版本历史:自 WordPress 2.1.0 引入
原文内容
Fires after all meta box sections have been output, before the closing #post-body div.
Parameters
$postWP_Post-
Post object.
Source
do_action( 'dbx_post_sidebar', $post );
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |