Remove Fields in checkout page WooCommerce

1: Remove All fields

Note: Some Payment Gateways require these fields, so you should check payment before removing it.

You have to add the code bellow to functions.php in child theme

add_filter( 'el_hidden_fields_checkout_woo', function(){ return true; } );

2: Remove Billing last name

add_filter( 'el_wce_unset_billing_last_name', function(){ return true; } );

3: Remove billing Phone

add_filter( 'el_wce_unset_billing_phone', function(){ return true; } );

4: Remove billing Company

add_filter( 'el_wce_unset_billing_company', function(){ return true; } );

5: Remove Billing Addresss 1

add_filter( 'el_wce_unset_billing_address_1', function(){ return true; } );

6: Remove Billing Addresss 2

add_filter( 'el_wce_unset_billing_address_2', function(){ return true; } );

7: Remove Billing City

add_filter( 'el_wce_unset_billing_city', function(){ return true; } );

8: Remove Billing Post Code

add_filter( 'el_wce_unset_billing_postcode', function(){ return true; } );

10: Remove Billing Country

add_filter( 'el_wce_unset_billing_country', function(){ return true; } );

11: Remove Billing State

add_filter( 'el_wce_unset_billing_state', function(){ return true; } );

12: Remove Order Comments

Last updated