Skip to content
Docs
Get RestroPress

Filter

rpress_after_payment_actions_delay

Updated
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#

ParameterTypeDescription
$delayintDelay in seconds.
$payment_idintID 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), in rpress_schedule_after_payment_action()

See also#

Was this page helpful?