How to remove customer email and customer phone for vendors (order detail section)
If you want to remove customer email and customer phone for vendors (Order Detail Section), add this code to the functions.php of your theme:
add_action( 'admin_enqueue_scripts', 'yith_wcmv_remove_customer_information_from_order', 20 );
if( ! function_exists( 'yith_wcmv_remove_customer_information_from_order' ) ){
function yith_wcmv_remove_customer_information_from_order(){
if( YITH_Vendors()->orders->is_vendor_order_details_page() ){
$style = '#order_data .address p:not(:first-child) {display: none;}';
$script = "jQuery('#order_data').find('.address p:not(:first-child)').remove();";
wp_add_inline_style( 'yith-wc-product-vendors-admin', $style );
wc_enqueue_js( $script );
}
}
}