Automattic\WooCommerce\Admin\Settings

SettingsSectionRegistry::unregister_allpublicWC 10.9.0

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() code WC 11.0.1

public function unregister_all(): void {
	$this->sections    = array();
	$this->initialized = false;
}