action_scheduler_retention_period

FILTER woocommerce\packages\action-scheduler\classes\ActionScheduler_QueueCleaner.php (ligne 61) github
Filter the minimum scheduled date age for action deletion.

Paramètres

Entrée :
$this->month_in_seconds
Sortie :
@param int $retention_period Minimum scheduled age in seconds of the actions to be deleted.

Utilisation

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

function ma_fonction_filtre($this->month_in_seconds) {
    // Modifier la valeur
    return $this->month_in_seconds;
}

Actualités

Chargement des actualités...