customize_render_section_{$this->id}
云策文档标注
概述
此文档介绍 WordPress 自定义器中的一个动态 Hook,用于在渲染特定 Customizer 部分前触发。Hook 名称包含动态部分,基于 Customizer 部分的 ID。
关键要点
- Hook 名称:customize_render_section_{$this->id},其中 {$this->id} 是动态部分,代表要渲染的 Customizer 部分的 ID。
- 触发时机:在渲染特定 Customizer 部分之前执行。
- 相关函数:由 WP_Customize_Section::maybe_render() 调用,用于检查权限并渲染部分。
- 版本历史:自 WordPress 3.4.0 版本引入。
原文内容
Fires before rendering a specific Customizer section.
Description
The dynamic portion of the hook name, $this->id, refers to the ID of the specific Customizer section to be rendered.
Source
do_action( "customize_render_section_{$this->id}" );
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |