WordPress at Your Fingertips
function is not described

WC_Log_Handler_DB::flush() public WC 1.0

Clear all logs from the DB.

{} It's a 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();

Code of WC_Log_Handler_DB::flush() WC 5.8.0

public static function flush() {
	global $wpdb;

	return $wpdb->query( "TRUNCATE TABLE {$wpdb->prefix}woocommerce_log" );
}