WC_Log_Handler_DB::flush │ public static │ WC 1.0

Clear all logs from the DB.

Метод класса: WC_Log_Handler_DB{}

Хуков нет.

Возвращает

bool. True if flush was successful.

Использование

$result = WC_Log_Handler_DB::flush();

Код WC_Log_Handler_DB::flush() WC 11.2.2

public static function flush() {
	global $wpdb;

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