Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories

Register::delete_all()publicWC 1.0

Delete the entirev approved directory list.

Method of the class: Register{}

No Hooks.

Return

true|false.

Usage

$Register = new Register();
$Register->delete_all(): bool;

Register::delete_all() code WC 7.1.0

public function delete_all(): bool {
	global $wpdb;
	$table = $this->get_table();
	// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
	return (bool) $wpdb->query( "DELETE FROM $table" );
}