Format the postcode according to the country and length of the postcode.
trim( $postcode
Sortie :
@param string $postcode Unformatted postcode. @param string $country Base country. @return string
// Modifier la valeur avec le filtre 'woocommerce_format_postcode'
add_filter('woocommerce_format_postcode', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(trim( $postcode) {
// Modifier la valeur
return trim( $postcode;
}
Chargement des actualités...