woocommerce_report_coupons_export_columns filter-hookWC 1.6.0

Filter to add or remove column names from the coupons report for export.

Usage

add_filter( 'woocommerce_report_coupons_export_columns', 'wp_kama_woocommerce_report_coupons_export_columns_filter' );

/**
 * Function for `woocommerce_report_coupons_export_columns` filter-hook.
 * 
 * @param  $export_columns 
 *
 * @return 
 */
function wp_kama_woocommerce_report_coupons_export_columns_filter( $export_columns ){

	// filter...
	return $export_columns;
}
$export_columns
-

Changelog

Since 1.6.0 Introduced.

Where the hook is called

Controller::get_export_columns()
woocommerce_report_coupons_export_columns
woocommerce/src/Admin/API/Reports/Coupons/Controller.php 321-324
return apply_filters(
	'woocommerce_report_coupons_export_columns',
	$export_columns
);

Where the hook is used in WooCommerce

Usage not found.