WC_Log_Handler_DB::flush()public staticWC 1.0

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() code WC 8.6.1

public static function flush() {
	global $wpdb;

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