WP_Customize_Manager::register_control_type()publicWP 4.1.0

Registers a customize control type.

Registered types are eligible to be rendered via JS and created dynamically.

{} It's a method of the class: WP_Customize_Manager{}

No Hooks.

Return

null. Nothing.

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.

Code of WP_Customize_Manager::register_control_type() WP 6.1.1

public function register_control_type( $control ) {
	$this->registered_control_types[] = $control;
}