Automattic\WooCommerce\Admin

ReportCSVExporter::set_report_type()publicWC 1.0

Setter for report type.

Method of the class: ReportCSVExporter{}

No Hooks.

Return

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() code WC 8.7.0

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();
}