Count products within certain terms, taking the main WP query into consideration, for the WC_Widget_Layered_Nav widget. This query allows counts to be generated based on the viewed products, not all products.
true
Sortie :
@param array $term_ids Term IDs. @param string $taxonomy Taxonomy. @param string $query_type Query Type. @return array
// Modifier la valeur avec le filtre 'woocommerce_layered_nav_count_maybe_cache'
add_filter('woocommerce_layered_nav_count_maybe_cache', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(true) {
// Modifier la valeur
return true;
}
Chargement des actualités...