/** * * * @return unknown */ public function download_csv() { if (!$this->orders) { return false; } extract(PV_Orders::format_order_details($this->orders, $this->product_id)); $headers = PV_Orders::get_headers(); // Export the CSV require_once pv_plugin_dir . 'classes/front/orders/class-export-csv.php'; PV_Export_CSV::output_csv($this->product_id, $headers, $body, $items); }