Automattic\WooCommerce\Admin
ReportCSVExporter::set_report_type
Setter for report type.
Method of the class: ReportCSVExporter{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ReportCSVExporter = new ReportCSVExporter(); $ReportCSVExporter->set_report_type( $type );
- $type(string) (required)
- The report type. E.g. customers.
ReportCSVExporter::set_report_type() ReportCSVExporter::set report type code WC 10.6.2
public function set_report_type( $type ) {
$this->report_type = $type;
$this->export_type = "admin_{$type}_report";
$this->filename = "wc-{$type}-report-export";
$this->controller = $this->map_report_controller();
}