woocommerce_analytics_report_should_use_cache

FILTER woocommerce\src\Admin\API\Reports\DataStore.php (ligne 307) github
Determines if a report will utilize caching.

Paramètres

Entrée :
true, $this->cache_key
Sortie :
@param bool $use_cache Whether or not to use cache.
@param string $cache_key The report's cache key. Used to identify the report.

Utilisation

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

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

Actualités

Chargement des actualités...