Allow providing a default value for additional fields if no value is already set.
null, $group, $wc_object
Sortie :
@param null $value The default value for the filter, always null. @param string $group The group of this key (shipping|billing|other). @param WC_Data $wc_object The object to get the field value for.
// Modifier la valeur avec le filtre 'woocommerce_get_default_value_for_{$key}'
add_filter('woocommerce_get_default_value_for_{$key}', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(null) {
// Modifier la valeur
return null;
}
Chargement des actualités...