woocommerce_customer_stock_notifications_verification_expiration_time_threshold
Filter the verification codes expiration time (in seconds).
Usage
add_filter( 'woocommerce_customer_stock_notifications_verification_expiration_time_threshold', 'wp_kama_woocommerce_customer_stock_notifications_verification_expiration_time_threshold_filter' );
/**
* Function for `woocommerce_customer_stock_notifications_verification_expiration_time_threshold` filter-hook.
*
* @param int $threshold
*
* @return int
*/
function wp_kama_woocommerce_customer_stock_notifications_verification_expiration_time_threshold_filter( $threshold ){
// filter...
return $threshold;
}
- $threshold(int)
- -
Changelog
| Since 10.2.0 | Introduced. |
Where the hook is called
woocommerce_customer_stock_notifications_verification_expiration_time_threshold
woocommerce/src/Internal/StockNotifications/Config.php 203-206
self::$verification_expiration_time_threshold = (int) apply_filters( 'woocommerce_customer_stock_notifications_verification_expiration_time_threshold', HOUR_IN_SECONDS );