You appear to be a bot. Output may be restricted
Description
Executes the one time event used for after purchase actions.
Usage
edd_process_after_payment_actions( $payment_id, $force );
Parameters
- $payment_id
- ( mixed ) optional –
- $force
- ( mixed ) optional –
Returns
void
Source
File name: easy-digital-downloads/includes/payments/actions.php
Lines:
1 to 17 of 17
function edd_process_after_payment_actions( $payment_id = 0, $force = false ) { if ( empty( $payment_id ) ) { return; } $payment = new EDD_Payment( $payment_id ); $has_fired = $payment->get_meta( '_edd_complete_actions_run' ); if ( ! empty( $has_fired ) && false === $force ) { return; } $payment->add_note( __( 'After payment actions processed.', 'easy-digital-downloads' ) ); $payment->update_meta( '_edd_complete_actions_run', time() ); // This is in GMT do_action( 'edd_after_payment_actions', $payment_id, $payment, new EDD_Customer( $payment->customer_id ) ); }