You appear to be a bot. Output may be restricted
Description
Schedules the one time event via WP_Cron to fire after purchase actions.
Is run on the edd_complete_purchase action.
Usage
edd_schedule_after_payment_action( $payment_id );
Parameters
- $payment_id
- ( mixed ) required –
Returns
void
Source
File name: easy-digital-downloads/includes/payments/actions.php
Lines:
1 to 11 of 11
function edd_schedule_after_payment_action( $payment_id ) { $use_cron = apply_filters( 'edd_use_after_payment_actions', true, $payment_id ); if ( $use_cron ) { $after_payment_delay = apply_filters( 'edd_after_payment_actions_delay', 30, $payment_id ); // Use time() instead of current_time( 'timestamp' ) to avoid scheduling the event in the past when server time // and WordPress timezone are different. wp_schedule_single_event( time() + $after_payment_delay, 'edd_after_payment_scheduled_actions', array( $payment_id, false ) ); } }