WC_Log_Handler_DB::flush()

Clear all logs from the DB.


Description Description


Return Return

(bool) True if flush was successful.


Top ↑

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" );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.