Controls whether this particular variation will appear greyed-out (inactive) or not (active). Used by extensions to make incompatible variations appear greyed-out, etc. Other possible uses: prevent out-of-stock variations from being selected.
true, $this
Sortie :
@return bool
// Modifier la valeur avec le filtre 'woocommerce_variation_is_active'
add_filter('woocommerce_variation_is_active', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(true) {
// Modifier la valeur
return true;
}
Chargement des actualités...