WP_Customize_Manager::remove_control()publicWP 3.4.0

Removes a customize control.

Note that removing the control doesn't destroy the WP_Customize_Control instance or remove its filters.

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

Хуков нет.

Возвращает

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

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

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->remove_control( $id );
$id(строка) (обязательный)
ID of the control.

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

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

Код WP_Customize_Manager::remove_control() WP 6.5.2

public function remove_control( $id ) {
	unset( $this->controls[ $id ] );
}