WP_Customize_Manager::register_control_type()
Registers a customize control 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_control_type( $control );
- $control(string) (required)
- Name of a custom control which is a subclass of WP_Customize_Control.
Changelog
Since 4.1.0 | Introduced. |
WP_Customize_Manager::register_control_type() WP Customize Manager::register control type code WP 6.5.2
public function register_control_type( $control ) { $this->registered_control_types[] = $control; }