WC_CSV_Exporter::set_column_names()
Set column names.
Method of the class: WC_CSV_Exporter{}
No Hooks.
Return
null
. Nothing (null).
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. |
WC_CSV_Exporter::set_column_names() WC CSV Exporter::set column names code WC 9.3.3
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 ); } }