Description
The “ims_customers_csv_columns” filter is used to add or remove columns from the downloadable customer csv file.
A plugin (or theme) can modify the array with the code:
<?php add_filter( 'ims_customers_csv_columns', 'filter_function_name' ); ?>
The hook is located in the image-store/admin/customers/customers_csv.php file.
Example
// Apply filter function add_ims_customers_csv_columns( $columns ) { return array_merge( array('user_id' => __('User ID')), $columns ); } add_filter('ims_customers_csv_columns', 'add_ims_customers_csv_columns');
Note: $columns is an associative array.
Leave a Reply