From 8608cea499124f93c7a4ff31c370dd88a5ad35d6 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Thu, 18 Feb 2016 14:48:44 -0500 Subject: [PATCH] Dropping Address Line 2 from Billing Address --- functions.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/functions.php b/functions.php index 424b056..434c8d3 100755 --- a/functions.php +++ b/functions.php @@ -287,4 +287,11 @@ function glm_change_order_status_names( $order_statuses ) { add_filter( 'wc_order_statuses', 'glm_change_order_status_names' ); */ +// Drop billing address line 2 in WooCommerce checkout page +function custom_wc_checkout_fields( $fields ) { + unset($fields['billing']['billing_address_2']); + return $fields; +} +add_filter( 'woocommerce_checkout_fields' , 'custom_wc_checkout_fields' ); + ?> -- 2.17.1