WordPress at Your Fingertips
function is not described

WC_CSV_Exporter::set_column_names() public WC 3.1.0

Set column names.

{} 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_column_names( $column_names );
$column_names(array) (required)
Column names array.

Changelog

Since 3.1.0 Introduced.

Code of WC_CSV_Exporter::set_column_names() WC 5.9.0

public function set_column_names( $column_names ) {
	$this->column_names = array();

	foreach ( $column_names as $column_id => $column_name ) {
		$this->column_names[ wc_clean( $column_id ) ] = wc_clean( $column_name );
	}
}