awesomemotive / easy-digital-downloads

Sell digital downloads through WordPress
https://easydigitaldownloads.com
GNU General Public License v2.0
863 stars 474 forks source link

edd_process_verified_download callback called twice? #9701

Open joedawson opened 7 months ago

joedawson commented 7 months ago

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

2) Place a download order 3) Download from the order 4) 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?