easy-digital-downloads icon indicating copy to clipboard operation
easy-digital-downloads copied to clipboard

edd_process_verified_download callback called twice?

Open joedawson opened this issue 1 year ago • 0 comments

Bug Report

Expected behavior

When using the edd_process_verified_download action, I expect this to occur once during download.

Actual behavior

When hooking into this, it triggers my callback twice.

Steps to reproduce the behavior

  1. Add the following to theme
add_action( 'edd_process_verified_download', function( $download_id, $email ) {
    // Send information to marketing platform, track to custom report, anything...
}, 10, 2 );
  1. Place a download order
  2. Download from the order
  3. Callback is triggered twice.

Information (if a specific version is affected):

PHP Version: 8.1 EDD Version (or branch): 3.2.5 WordPress Version: 6.4.1

Is this intended? If so, is there another action I should be using that occurs once during download?

joedawson avatar Dec 05 '23 18:12 joedawson