Add the below code in the functions.php file of your current active theme to hide the customer details from the vendor –
// Hide customer details from vendors
add_filter( 'is_vendor_can_see_customer_details', '__return_false' );
add_filter( 'is_vendor_can_see_order_billing_address','__return_false');
add_filter( 'is_vendor_can_see_order_shipping_address','__return_false'); // Hide shipping address
add_filter('show_cust_address_field', '__return_false');
add_filter('show_cust_billing_address_field','__return_false');
add_filter('show_cust_shipping_address_field','__return_false'); // Hide shipping address
// Remove customer details from vendor CSV headers
add_filter('mvx_vendor_order_generate_csv_headers', 'custom_mvx_remove_from_csv');
function custom_mvx_remove_from_csv($headers) {
unset($headers['buyer_email']);
unset($headers['buyer_contact']);
unset($headers['buyer_name']);
unset($headers['billing_address']);
unset($headers['shipping_address']); // Remove shipping address from CSV
return $headers;
}
// Remove customer details from vendor CSV data
add_filter('mvx_vendor_order_generate_csv', 'custom_mvx_remove_from_csv_data', 10, 2);
function custom_mvx_remove_from_csv_data($data, $order_id) {
if (isset($data['buyer_email'])) {
unset($data['buyer_email']);
}
if (isset($data['buyer_contact'])) {
unset($data['buyer_contact']);
}
if (isset($data['buyer_name'])) {
unset($data['buyer_name']);
}
if (isset($data['billing_address'])) {
unset($data['billing_address']);
}
if (isset($data['shipping_address'])) {
unset($data['shipping_address']); // Remove shipping address from CSV
}
return $data;
}






