Filters the threshold for synchronous regeneration of variation attribute summaries. If the number of variations affected by an update is below this threshold, the summaries are regenerated synchronously. Otherwise, the regeneration is scheduled asynchronously.
50
Sortie :
@param int $threshold The default threshold value (50). @return int The filtered threshold value.
// Modifier la valeur avec le filtre 'woocommerce_regenerate_variation_summaries_sync_threshold'
add_filter('woocommerce_regenerate_variation_summaries_sync_threshold', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(50) {
// Modifier la valeur
return 50;
}
Chargement des actualités...