WP_Customize_Manager::remove_control()
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
. Ничего.
Использование
$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 Customize Manager::remove control WP 6.1.1
public function remove_control( $id ) { unset( $this->controls[ $id ] ); }