How to remove fields from WooCommerce Checkout page

add_filter( 'woocommerce_billing_fields', 'wpm_filter_woocommerce_billing_fields', 9999, 1 );

function wpm_filter_woocommerce_billing_fields( $fields ) { 

    if ( is_checkout() ) {
      
		$fields_to_remove = array( 
			'billing_company', 
			'billing_first_name', 
			'billing_last_name', 
			'billing_country', 
			'billing_address_1', 
			'billing_address_2', 
			'billing_postcode', 
			'billing_city', 
			'billing_state', 
			'billing_phone', 
		);
		
		foreach( $fields_to_remove as $key ) {
			if ( isset( $fields[ $key] ) ) {
				unset( $fields[ $key] );
			}
		}
		
    }
    
    return $fields;
}

Get in touch!

Send us a message, we are
happy to provide assistance or a project quote.