woocommerce_format_postcode

FILTER woocommerce\includes\wc-formatting-functions.php (ligne 1057) github
Format the postcode according to the country and length of the postcode.

Paramètres

Entrée :
trim( $postcode
Sortie :
@param string $postcode Unformatted postcode.
@param string $country  Base country.
@return string

Utilisation

// 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;
}

Actualités

Chargement des actualités...