sequra_updated_checkout_listener_delay
Hook Filter
Set the delay in milliseconds of the listener for the WooCommerce updated_checkout JS event.
Description
Filter to set the delay in milliseconds of the listener for the WooCommerce updated_checkout JS event.
Parameters
| Parameter | Type | Description |
|---|---|---|
$milliseconds | int | Set if the updated checkout event listener should be delayed or not. Default is 0 |
Changelog
| Version | Description |
|---|---|
| 3.2.0 | Introduced |
Usage Example
add_filter('sequra_updated_checkout_listener_delay', function( $milliseconds ){
return 1000; // To wait a second.
});Updated 5 months ago