• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / edd_process_after_payment_actions() – Executes the one time event used for after purchase actions.

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 ) );
}
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 8th April 2020

Primary Sidebar

Information

Function name: edd_process_after_payment_actions
Plugin ref: Easy Digital Downloads
Version: 2.9.23
Sourcefile: includes/payments/actions.php
File ref: includes/payments/actions.php
Deprecated?: No
API Letters: A,E,P

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites