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.

Метод класса: WP_Customize_Manager{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->register_control_type( $control );
$control(строка) (обязательный)
Name of a custom control which is a subclass of WP_Customize_Control.

Список изменений

С версии 4.1.0 Введена.

Код WP_Customize_Manager::register_control_type() WP 6.5.2

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