woocommerce_customer_stock_notification_throttle_threshold filter-hookWC 10.2.0

Filter: woocommerce_customer_stock_notification_throttle_threshold

Usage

add_filter( 'woocommerce_customer_stock_notification_throttle_threshold', 'wp_kama_woocommerce_customer_stock_notification_throttle_threshold_filter' );

/**
 * Function for `woocommerce_customer_stock_notification_throttle_threshold` filter-hook.
 * 
 * @param int $threshold Throttle time in seconds should pass from the last notification delivery time.
 *
 * @return int
 */
function wp_kama_woocommerce_customer_stock_notification_throttle_threshold_filter( $threshold ){

	// filter...
	return $threshold;
}
$threshold(int)
Throttle time in seconds should pass from the last notification delivery time.

Changelog

Since 10.2.0 Introduced.

Where the hook is called

EligibilityService::is_notification_throttled()
woocommerce_customer_stock_notification_throttle_threshold
woocommerce/src/Internal/StockNotifications/Utilities/EligibilityService.php 200
$threshold = (int) apply_filters( 'woocommerce_customer_stock_notification_throttle_threshold', self::SPAM_THRESHOLD );

Where the hook is used in WooCommerce

Usage not found.