customize_render_panel
云策文档标注
概述
customize_render_panel 是一个 WordPress 动作钩子,在渲染 Customizer 面板之前触发,允许开发者在面板显示前执行自定义操作。
关键要点
- 钩子名称:customize_render_panel
- 触发时机:在渲染 Customizer 面板之前
- 参数:$panel,一个 WP_Customize_Panel 实例
- 源调用:do_action( 'customize_render_panel', $this )
- 相关函数:WP_Customize_Panel::maybe_render(),用于检查权限并渲染面板
- 引入版本:4.0.0
原文内容
Fires before rendering a Customizer panel.
Parameters
$panelWP_Customize_Panel-
WP_Customize_Panel instance.
Source
do_action( 'customize_render_panel', $this );
Changelog
| Version | Description |
|---|---|
| 4.0.0 | Introduced. |