$this->prices_array is an array of values which may have been modified from what is stored in transients - this may not match $transient_cached_prices_array. If the value has already been generated, we don't need to grab the values again so just return them. They are already filtered.
$prices_array, $variation, $for_display
Sortie :
// Modifier la valeur avec le filtre 'woocommerce_variation_prices_array'
add_filter('woocommerce_variation_prices_array', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($prices_array) {
// Modifier la valeur
return $prices_array;
}
Chargement des actualités...