You appear to be a bot. Output may be restricted
Description
Output the CSV columns.
We make use of this function to set up the header of the earnings report.
Usage
$array = EDD_Batch_Earnings_Report_Export::print_csv_cols();
Parameters
Returns
array $cols CSV header.
Source
File name: easy-digital-downloads/includes/admin/reporting/export/class-batch-export-earnings-report.php
Lines:
1 to 38 of 38
public function print_csv_cols() { $cols = $this->get_csv_cols(); $col_data = ''; $column_count = count( $cols ); for ( $i = 0; $i < $column_count; $i++ ) { $col_data .= $cols[ $i ]; // We don't need an extra space after the first column if ( $i == 0 ) { $col_data .= ','; continue; } if ( $i == ( $column_count - 1 ) ) { $col_data .= "\r\n"; } else { $col_data .= ",,"; } } $statuses = $this->get_supported_statuses(); $number_cols = count( $statuses ) + 2; $col_data .= ','; for ( $i = 1; $i <= $number_cols; $i++ ) { $col_data .= __( 'Order Count', 'easy-digital-downloads' ) . ','; $col_data .= __( 'Gross Amount', 'easy-digital-downloads' ); if ( $number_cols !== $i ) { $col_data .= ','; } } $col_data .= "\r\n"; $this->stash_step_data( $col_data ); return $col_data; }