customize_render_control
云策文档标注
概述
customize_render_control 是一个 WordPress 动作钩子,在 Customizer 控件渲染前触发,允许开发者干预渲染过程。
关键要点
- 触发时机:在当前 Customizer 控件渲染之前执行。
- 参数:传递一个 WP_Customize_Control 实例作为参数。
- 用途:常用于添加自定义逻辑或修改控件渲染行为。
- 相关函数:由 WP_Customize_Control::maybe_render() 调用。
- 版本历史:自 WordPress 3.4.0 版本引入。
原文内容
Fires just before the current Customizer control is rendered.
Parameters
$controlWP_Customize_Control-
WP_Customize_Control instance.
Source
do_action( 'customize_render_control', $this );
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |