Created
April 11, 2016 15:03
-
-
Save DustinHartzler/450a709f837f01a838d9f6af02abb9b7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function my_wc_custom_shipping_fields( $fields ) { | |
$fields['shipping_postcode']['maxlength'] = 5; | |
return $fields; | |
} | |
add_filter( 'woocommerce_shipping_fields', 'my_wc_custom_shipping_fields' ); | |
function my_wc_custom_billing_fields( $fields ) { | |
$fields['billing_postcode']['maxlength'] = 5; | |
return $fields; | |
} | |
add_filter( 'woocommerce_billing_fields', 'my_wc_custom_billing_fields' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment