The following sample code snippet will help you remove all the Address fields from both Billing and Shipping Fields . This snippet will also rename the label name from First Name to Table Name
add_filter( 'woocommerce_default_address_fields' , 'wpslash_override_default_address_fields' );
function wpslash_override_default_address_fields( $address_fields ) {
$address_fields['first_name']['label'] = __('Table Name', 'woocommerce');
unset( $address_fields['postcode']);
unset( $address_fields['city']);
unset( $address_fields['state']);
unset( $address_fields['company']);
unset( $address_fields['address_1']);
unset( $address_fields['address_2']);
unset( $address_fields['country']);
unset( $address_fields['postcode']);
unset( $address_fields['last_name']);
return $address_fields;
}
The following snippet will remove Email and Phone fields from Checkout
add_filter( 'woocommerce_billing_fields', 'wpslash_remove_billing_fields', 20, 1 );
function wpslash_remove_billing_fields($fields) {
unset( $fields ['billing_email'] );
unset( $fields ['billing_phone'] );
return $fields;
}