WC_Log_Handler_DB::flush()
Clear all logs from the DB.
Description Description
Return Return
(bool) True if flush was successful.
Source Source
File: includes/log-handlers/class-wc-log-handler-db.php
public static function flush() { global $wpdb; return $wpdb->query( "TRUNCATE TABLE {$wpdb->prefix}woocommerce_log" ); }