Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin

SyncUI::clear_existing_entriespublicWC 1.0

Clears all existing rules from the Approved Directories list.

Method of the class: SyncUI{}

No Hooks.

Returns

null. Nothing (null).

Usage

$SyncUI = new SyncUI();
$SyncUI->clear_existing_entries();

SyncUI::clear_existing_entries() code WC 10.3.6

public function clear_existing_entries() {
	$this->security_check();
	$this->register->delete_all();
}