Automattic\WooCommerce\Admin

ReportCSVExporter::set_report_type()publicWC 1.0

Setter for report type.

Метод класса: ReportCSVExporter{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ReportCSVExporter = new ReportCSVExporter();
$ReportCSVExporter->set_report_type( $type );
$type(строка) (обязательный)
The report type. E.g. customers.

Код ReportCSVExporter::set_report_type() 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();
}