Home / Disable / Increase After Order Actions Delay
Duplicate Snippet

Embed Snippet on Your Site

Increase After Order Actions Delay

By default, Easy Digital Downloads schedules a WP Cron event 30 seconds after a purchase is marked as completed for the first time.

Due to server timing issues, it may be necessary to increase that time to 60 or 90 seconds. This snippet will allow you do that.

Code Preview
php
<?php
add_filter( 'edd_after_payment_actions_delay', function( $delay ) {
	// Change this to the number of seconds you want to delay by. Suggested values are 60 or 90.
	$delay = 60;
	
	return $delay;
} );

Comments

Add a Comment