$tax_line) { $line = array( date_i18n(get_option('date_format'), strtotime($day)), $tax_line['order_count'], wu_format_currency($tax_line['total']), wu_format_currency($tax_line['tax_total']), wu_format_currency($tax_line['net_profit']) ); $data[] = $line; } // end foreach; $page->render_csv_button(array( 'headers' => $headers, 'data' => $data, 'slug' => $slug )); ?> $tax_line) : ?>