Checkout

WooCommerce Remove Address 2 Checkout Field

WooCommerce checkout form without address line 2 field

Pre-Requisites

There are no pre-requisites in order for you to be able to implement this solution.

How To Implement This Solution?

Simply copy the pre-coded solution to your active theme’s functions.php or preferably the Code Snippets Plugin.

About This Solution

/**
* Snippet Name:     Remove the Address Line 2 field from the WooCommerce checkout form.
* Snippet Author:   ecommercehints.com
*/

function ecommercehints_filter_billing_fields($fields){
unset( $fields["billing_address_2"] );
return $fields;
}
add_filter( 'woocommerce_billing_fields', 'ecommercehints_filter_billing_fields' );

Snippet Benefits

  • Reduce the number of interactions the user has, increasing their likeliness to buy.
  • Remove unnecessary, optional distractions from the checkout form.

100 WooCommerce Conversion Rate Optimisation Tips

This field is for validation purposes and should be left unchanged.

Let’s collaborate!

Need to outsource WordPress development?

Join forces with UnlimitedWP for an outsourced white label web development service you can truly rely on.

First Timer Here?

Sign up to receive 20% off on your first month with us.

26027
WELCOME OFFER