Automattic\WooCommerce\Admin
ReportCSVExporter::set_report_args
Setter for report args.
Метод класса: ReportCSVExporter{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ReportCSVExporter = new ReportCSVExporter(); $ReportCSVExporter->set_report_args( $args );
- $args(массив) (обязательный)
- The report args.
Код ReportCSVExporter::set_report_args() ReportCSVExporter::set report args WC 11.1.2
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;
}