WC_Log_Handler_DB::flush
Clear all logs from the DB.
Method of the class: WC_Log_Handler_DB{}
No Hooks.
Returns
true|false. True if flush was successful.
Usage
$result = WC_Log_Handler_DB::flush();
WC_Log_Handler_DB::flush() WC Log Handler DB::flush code WC 10.3.6
public static function flush() {
global $wpdb;
return $wpdb->query( "TRUNCATE TABLE {$wpdb->prefix}woocommerce_log" );
}