Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // functions.php
- function my_custom_csv($keys)
- {
- $keys = array_diff($keys, array(
- 'billing_first_name',
- 'billing_last_name' //, etc
- ));
- /* etc...
- Here are the keys you may remove this way :
- //general
- 'id', 'status', 'order_date',
- //billing infos
- 'billing_first_name', 'billing_last_name',
- 'billing_company', 'billing_address_1', 'billing_address_2','billing_city',
- 'billing_postcode', 'billing_country', 'billing_state', 'billing_email',
- 'billing_phone',
- //shipping infos
- 'shipping_first_name', 'shipping_last_name',
- 'shipping_company', 'shipping_address_1', 'shipping_address_2',
- 'shipping_city', 'shipping_postcode', 'shipping_state', 'shipping_country',
- //note
- 'customer_note',
- //payment, shipping and total
- 'shipping_method_title', 'payment_method_title', 'order_discount',
- 'cart_discount', 'order_tax', 'order_shipping', 'order_shipping_tax',
- 'order_total', 'order_tax_detail', 'completed_date',
- //others
- 'number_of_different_items',
- 'total_number_of_items',
- 'used_coupons',
- 'coupon_name',
- 'coupon_discount'
- */
- return $keys;
- }
- add_filter( 'wqep_included_order_keys_filter', 'my_custom_csv' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement