WC_Log_Handler_DB::flush()
Clear all logs from the DB.
Method of the class: WC_Log_Handler_DB{}
No Hooks.
Return
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 9.5.1
public static function flush() { global $wpdb; return $wpdb->query( "TRUNCATE TABLE {$wpdb->prefix}woocommerce_log" ); }