woocommerce_(export_type)_export_column_names filter-hookWC 3.1.0

Return an array of supported column names and ids.

Usage

add_filter( 'woocommerce_(export_type)_export_column_names', 'wp_kama_woocommerce_export_type_column_names_filter', 10, 2 );

/**
 * Function for `woocommerce_(export_type)_export_column_names` filter-hook.
 * 
 * @param  $column_names 
 * @param  $that         
 *
 * @return 
 */
function wp_kama_woocommerce_export_type_column_names_filter( $column_names, $that ){

	// filter...
	return $column_names;
}
$column_names
-
$that
-

Changelog

Since 3.1.0 Introduced.

Where the hook is called

WC_CSV_Exporter::get_column_names()
woocommerce_(export_type)_export_column_names
woocommerce/includes/export/abstract-wc-csv-exporter.php 93
return apply_filters( "woocommerce_{$this->export_type}_export_column_names", $this->column_names, $this );

Where the hook is used in WooCommerce

Usage not found.