WP_Customize_Manager::register_section_type()
Registers a customize section type.
Registered types are eligible to be rendered via JS and created dynamically.
Method of the class: WP_Customize_Manager{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WP_Customize_Manager = new WP_Customize_Manager(); $WP_Customize_Manager->register_section_type( $section );
- $section(string) (required)
- Name of a custom section which is a subclass of WP_Customize_Section.
Notes
- See: WP_Customize_Section
Changelog
Since 4.3.0 | Introduced. |
WP_Customize_Manager::register_section_type() WP Customize Manager::register section type code WP 6.5.2
public function register_section_type( $section ) { $this->registered_section_types[] = $section; }