woocommerce_delete_expired_transient_files_interval

FILTER woocommerce\src\Internal\TransientFiles\TransientFilesEngine.php (ligne 369) github
Filter to alter the interval between the actions that delete expired transient files.

Paramètres

Entrée :
DAY_IN_SECONDS
Sortie :
@param int $interval The default time before the next action run, in seconds.
@return int The time to actually wait before the next action run, in seconds.

Utilisation

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

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

Actualités

Chargement des actualités...