woocommerce_product_query_max_rand_cache_count

FILTER woocommerce\includes\shortcodes\class-wc-shortcode-products.php (ligne 552) github
Generate and return the transient name for this shortcode based on the query args.

Paramètres

Entrée :
5
Sortie :
@return string

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_product_query_max_rand_cache_count'
add_filter('woocommerce_product_query_max_rand_cache_count', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(5) {
    // Modifier la valeur
    return 5;
}

Actualités

Chargement des actualités...