Automattic\WooCommerce\Admin

ReportCSVExporter::set_report_argspublicWC 1.0

Setter for report args.

Method of the class: ReportCSVExporter{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ReportCSVExporter = new ReportCSVExporter();
$ReportCSVExporter->set_report_args( $args );
$args(array) (required)
The report args.

ReportCSVExporter::set_report_args() code WC 11.0.1

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

	// Store the caller's args as-is. Our internal export args (batch size and
	// extended info) are applied in prepare_data_to_export() after the
	// caller's args have been validated, so they are never checked against
	// the user-facing report schema.
	$this->report_args = $args;
}