This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Frontend: Display the custom billing fields (in checkout and my account) | |
add_filter( 'woocommerce_billing_fields' ,'add_custom_billing_fields', 20, 1 ); | |
function add_custom_billing_fields( $fields ) { | |
$fields['billing_address_3'] = array( | |
'label' => __( 'Stiege', 'woocommerce' ), | |
'placeholder' => _x('Stiege', 'placeholder', 'woocommerce'), | |
'required' => true, | |
'class' => array('form-row-wide'), | |
'clear' => true |