Automattic\WooCommerce\Admin\Settings
SettingsSectionRegistry::unregister_all
Clear all registered sections.
Method of the class: SettingsSectionRegistry{}
No Hooks.
Returns
null. Nothing (null).
Usage
$SettingsSectionRegistry = new SettingsSectionRegistry(); $SettingsSectionRegistry->unregister_all(): void;
Changelog
| Since 10.9.0 | Introduced. |
SettingsSectionRegistry::unregister_all() SettingsSectionRegistry::unregister all code WC 11.0.1
public function unregister_all(): void {
$this->sections = array();
$this->initialized = false;
}