customize_render_section
云策文档标注
概述
customize_render_section 是一个 WordPress 动作钩子,在渲染 Customizer 部分之前触发,允许开发者在渲染前执行自定义操作。
关键要点
- 这是一个动作钩子,用于在 Customizer 部分渲染前触发。
- 参数为 $section,类型为 WP_Customize_Section 实例。
- 在 WP_Customize_Section::maybe_render() 方法中使用,用于检查权限并渲染部分。
- 从 WordPress 3.4.0 版本开始引入。
原文内容
Fires before rendering a Customizer section.
Parameters
$sectionWP_Customize_Section-
WP_Customize_Section instance.
Source
do_action( 'customize_render_section', $this );
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |