woocommerce_customer_stock_notification_throttle_threshold

FILTER woocommerce\src\Internal\StockNotifications\Utilities\EligibilityService.php (ligne 200) github
Filter: woocommerce_customer_stock_notification_throttle_threshold

Paramètres

Entrée :
self::SPAM_THRESHOLD
Sortie :
@param int $threshold Throttle time in seconds should pass from the last notification delivery time.

Utilisation

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

function ma_fonction_filtre(self::SPAM_THRESHOLD) {
    // Modifier la valeur
    return self::SPAM_THRESHOLD;
}

Actualités

Chargement des actualités...