Filter
rpress_after_payment_actions_delay
On this page
Filters the delay, in seconds, before the after-payment actions event runs.
Used by rpress_schedule_after_payment_action when scheduling the single WP-Cron event that fires rpress_after_payment_actions. The delay is added to the current time. The default is 30 seconds.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$delay | int | Delay in seconds. |
$payment_id | int | ID of the payment. |
Return value#
int. Delay in seconds.
Example#
function my_after_payment_delay( $delay, $payment_id ) {
return 120;
}
add_filter( 'rpress_after_payment_actions_delay', 'my_after_payment_delay', 10, 2 );
Notes#
Only applies when rpress_use_after_payment_actions returns true.
Source#
Applied in:
includes/payments/actions.php(line 161), inrpress_schedule_after_payment_action()
See also#
Was this page helpful?
