Remove billing phone and email fields from my account edit address in WooCommerce
The following code function will remove billing phone and email fields from My account > edit address:
add_filter( 'woocommerce_billing_fields', 'remove_account_billing_phone_and_email_fields', 20, 1 );function remove_account_billing_phone_and_email_fields( $billing_fields ) { // Only on my account 'edit-address' if( is_wc_endpoint_url( 'edit-address' ) ){ unset($billing_fields['billing_phone']); unset($billing_fields['billing_email']); } return $billing_fields;}
Code goes in function.php file of the active child theme (or active theme). Tested and works.