WooParc_removeAddress2

Remove address 2 from checkout fields if set.

Description

WooParc_removeAddress2( $fields ); 

Parameters (1)

0. $fields
The fields.

Usage

  1. if ( !function_exists( 'WooParc_removeAddress2' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-postnl-parcelware/inc/funct.php'; 
  3.  
  4. // The fields. 
  5. $fields = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = WooParc_removeAddress2($fields); 
  9.  

Defined (1)

The function is defined in the following location(s).

/inc/funct.php  
  1. function WooParc_removeAddress2( $fields ) { 
  2. unset($fields['billing']['billing_address_2']); 
  3. unset($fields['shipping']['shipping_address_2']); 
  4. return $fields;