woocommerce_customer_stock_notifications_first_batch_delay

FILTER woocommerce\src\Internal\StockNotifications\AsyncTasks\JobManager.php (ligne 82) github
Filter: woocommerce_customer_stock_notifications_first_batch_delay

Paramètres

Entrée :
MINUTE_IN_SECONDS, $product_id
Sortie :
@param int   $delay       Delay time in seconds before first batch.
@param int   $product_id  Product ID being scheduled.

Utilisation

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

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

Actualités

Chargement des actualités...