WordPress at Your Fingertips
function is not described

WC_CSV_Exporter::set_columns_to_export() public WC 3.1.0

Set columns to export.

{} It's a method of the class: WC_CSV_Exporter{}

No Hooks.

Return

null. Nothing.

Usage

$WC_CSV_Exporter = new WC_CSV_Exporter();
$WC_CSV_Exporter->set_columns_to_export( $columns );
$columns(array) (required)
Columns array.

Changelog

Since 3.1.0 Introduced.

Code of WC_CSV_Exporter::set_columns_to_export() WC 5.9.0

public function set_columns_to_export( $columns ) {
	$this->columns_to_export = array_map( 'wc_clean', $columns );
}