Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories

Register::delete_all()publicWC 1.0

Delete the entirev approved directory list.

{} Это метод класса: Register{}

Хуков нет.

Возвращает

true|false.

Использование

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

Код Register::delete_all() WC 6.7.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" );
}