WP_Customize_Manager::remove_setting()
Removes a customize setting.
Note that removing the setting doesn't destroy the WP_Customize_Setting instance or remove its filters.
Метод класса: WP_Customize_Manager{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WP_Customize_Manager = new WP_Customize_Manager(); $WP_Customize_Manager->remove_setting( $id );
- $id(строка) (обязательный)
- Customize Setting ID.
Список изменений
С версии 3.4.0 | Введена. |
Код WP_Customize_Manager::remove_setting() WP Customize Manager::remove setting WP 6.6.2
public function remove_setting( $id ) { unset( $this->settings[ $id ] ); }