WC_CSV_Exporter::set_columns_to_export()
Set columns to export.
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_columns_to_export( $columns );
- $columns(array) (required)
- Columns array.
Changelog
Since 3.1.0 | Introduced. |
WC_CSV_Exporter::set_columns_to_export() WC CSV Exporter::set columns to export code WC 9.4.2
public function set_columns_to_export( $columns ) { $this->columns_to_export = array_map( 'wc_clean', $columns ); }