Filter to allow/prevent recounting of terms as it could be expensive. A likely scenario for this is when bulk importing products. We could then prevent it from recounting per product but instead recount it once when import is done. Of course this means the import logic has to support this.
true
Sortie :
@param bool
// Modifier la valeur avec le filtre 'woocommerce_product_recount_terms'
add_filter('woocommerce_product_recount_terms', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(true) {
// Modifier la valeur
return true;
}
Chargement des actualités...