Created
May 24, 2014 17:38
-
-
Save claudiosanches/85aef11cd81049246784 to your computer and use it in GitHub Desktop.
WooCommerce Extra Checkout Fields for Brazil - Neighborhood required
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 | |
function custom_wcbcf_billing_fields( $fields ) { | |
$fields['billing_neighborhood']['required'] = true; | |
return $fields; | |
} | |
add_filter( 'wcbcf_billing_fields', 'custom_wcbcf_billing_fields' ); | |
function custom_wcbcf_shipping_fields( $fields ) { | |
$fields['shipping_neighborhood']['required'] = true; | |
return $fields; | |
} | |
add_filter( 'wcbcf_shipping_fields', 'custom_wcbcf_shipping_fields' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment