Automattic\WooCommerce\Admin

ReportCSVExporter::set_report_args()publicWC 1.0

Setter for report args.

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

Хуков нет.

Возвращает

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

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

$ReportCSVExporter = new ReportCSVExporter();
$ReportCSVExporter->set_report_args( $args );
$args(массив) (обязательный)
The report args.

Код ReportCSVExporter::set_report_args() WC 8.7.0

public function set_report_args( $args ) {
	// Use our own internal limit and include all extended info.
	$report_args = array_merge(
		$args,
		array(
			'per_page'      => $this->get_limit(),
			'extended_info' => true,
		)
	);

	// Should this happen externally?
	if ( isset( $report_args['page'] ) ) {
		$this->set_page( $report_args['page'] );
	}

	$this->report_args = $report_args;
}