WooCommerce Remove Address 2 Checkout Field

WooCommerce checkout form without address line 2 field


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.
WooCommerce Conversion Rate Optimisation (CRO) eBook
100 WooCommerce Conversion Rate Optimisation Tips

Leave a Reply

If you are going to write code in the comments, please wrap it between code tags.

Your email address will not be published. Required fields are marked *

Other Recent Guides

Subscribe To Emails

Get exclusive WooCommerce tips that I only share with email subscribers

Join hundreds of other subscribers