mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
6 lines
231 B
Text
6 lines
231 B
Text
add_filter( 'woocommerce_default_address_fields' , 'wc_override_postcode_validation' );
|
|
|
|
function wc_override_postcode_validation( $address_fields ) {
|
|
$address_fields['postcode']['required'] = false;
|
|
return $address_fields;
|
|
}
|