woocommerce_valid_location_types

FILTER woocommerce\includes\class-wc-shipping-zone.php (ligne 354) github
Is passed location type valid?

Paramètres

Entrée :
array( 'postcode', 'state', 'country', 'continent'
Sortie :
@param  string $type Type to check.
@return boolean

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_valid_location_types'
add_filter('woocommerce_valid_location_types', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(array( 'postcode') {
    // Modifier la valeur
    return array( 'postcode';
}

Actualités

Chargement des actualités...