From: Chuck Scott Date: Thu, 18 Feb 2016 19:48:44 +0000 (-0500) Subject: Dropping Address Line 2 from Billing Address X-Git-Tag: v1.0.15^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=8608cea499124f93c7a4ff31c370dd88a5ad35d6;p=WP-Themes%2FTomsMomsCookies.git Dropping Address Line 2 from Billing Address --- 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' ); + ?>