WP_Customize_Manager::register_section_type() WordPress Method
The WP_Customize_Manager::register_section_type() method is used to register a custom section type. This is useful for creating new types of sections that can be used with the WordPress Customizer.
WP_Customize_Manager::register_section_type( string $section ) #
Registers a customize section type.
Description
Registered types are eligible to be rendered via JS and created dynamically.
See also
Parameters
- $section
(string)(Required)Name of a custom section which is a subclass of WP_Customize_Section.
Source
File: wp-includes/class-wp-customize-manager.php
public function register_section_type( $section ) { $this->registered_section_types[] = $section; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |