cwcfp_add_fee_text_entry_update_delay
The cwcfp_add_fee_text_entry_update_delay
filter is used to insert a delay in the time that the checkout page refreshes the fee after a customer enters a value in a text box or text area field.
By default the value this filter returns is 1000 milliseconds, which is equivalent to 1 second.
This filter accepts one attribute:
$delay
: By default, this value is 1000.
It is expected that the value you return is an integer.
You can change the update delay by using the filter like this:
add_filter( 'cwcfp_add_fee_text_entry_update_delay', 'change_update_delay' ); function change_update_delay( $delay ) { return 5000; // set the delay to 5 seconds }