Home / Admin / Change label of CSV header, and removing others(Export Totals to CSV)
Duplicate Snippet

Embed Snippet on Your Site

Change label of CSV header, and removing others(Export Totals to CSV)

This snippet will change the label of CSV header, and remove the others(Export Totals to CSV)

Code Preview
php
<?php
add_filter( 'wcv_commissions_sum_export_columns', 'wcv_change_commissions_sum_export_columns', 10, 1 );
function wcv_change_commissions_sum_export_columns( $desciption_args ) {
	$add_args = array(
		'bank_routing' => __( 'BSB', 'wc-vendors' ),
	);
	// Remove iban and swift column.
	unset( $desciption_args['bank_iban'] );
	unset( $desciption_args['bank_swift'] );
	$desciption_args = array_merge( $desciption_args, $add_args );
	return $desciption_args;
}

Comments

Add a Comment