WC_Log_Handler_DB::flush()
Clear all logs from the DB.
Метод класса: WC_Log_Handler_DB{}
Хуков нет.
Возвращает
true|false
. True if flush was successful.
Использование
$result = WC_Log_Handler_DB::flush();
Код WC_Log_Handler_DB::flush() WC Log Handler DB::flush WC 9.8.2
public static function flush() { global $wpdb; return $wpdb->query( "TRUNCATE TABLE {$wpdb->prefix}woocommerce_log" ); }