woocommerce_default_address_fields

woocommerce_default_address_fields

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_default_address_fields') is found 1 times:

  • /includes/class-wc-countries.php line 821
    		if ( 'hidden' === get_option( 'woocommerce_checkout_address_2_field', 'optional' ) ) {
    			unset( $fields['address_2'] );
    		}
    
    		$default_address_fields = apply_filters( 'woocommerce_default_address_fields', $fields );
    		// Sort each of the fields based on priority.
    		uasort( $default_address_fields, 'wc_checkout_fields_uasort_comparison' );
    
    		return $default_address_fields;
    	}