shadmanalvy
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Thank you for your assistance…i placed the code in the wp-content/plugins/dokan-master/includes/functions.php directory earlier…however when i placed that in the child theme’s function.php file, it is working fine now.
Your understanding is correct…I have applied the following code at wp-content/plugins/dokan-master/includes/functions.php but the exported csv still contains the headers that i am trying to remove in the below code
<? php function dokan_order_export_headers($headers){ unset($headers['billing_company']); unset($headers['billing_first_name']); unset($headers['billing_last_name']); unset($headers['billing_email']); unset($headers['billing_phone']); unset($headers['customer_ip']); unset($headers['billing_full_name']); unset($headers['billing_address_1']); unset($headers['billing_address_2']); unset($headers['billing_city']); unset($headers['billing_state']); unset($headers['billing_postcode']); unset($headers['billing_country']); unset($headers['shipping_company']); unset($headers['shipping_first_name']); unset($headers['shipping_last_name']); unset($headers['shipping_email']); unset($headers['shipping_phone']); unset($headers['shipping_full_name']); unset($headers['shipping_address_1']); unset($headers['shipping_address_2']); unset($headers['shipping_city']); unset($headers['shipping_state']); unset($headers['shipping_postcode']); unset($headers['shipping_country']); return $headers; } add_filter('dokan_csv_export_headers', 'dokan_order_export_headers'); ?>
Viewing 3 replies - 1 through 3 (of 3 total)