Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edd_process_verified_download callback called twice? #9701

Open
joedawson opened this issue Dec 5, 2023 · 0 comments
Open

edd_process_verified_download callback called twice? #9701

joedawson opened this issue Dec 5, 2023 · 0 comments
Labels
type-bug workflow-needs-replication workflow-pending-triage Items that need to be triaged and reviewed before they are worked on.

Comments

@joedawson
Copy link

joedawson commented Dec 5, 2023

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 joedawson added type-bug workflow-needs-replication workflow-pending-triage Items that need to be triaged and reviewed before they are worked on. labels Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug workflow-needs-replication workflow-pending-triage Items that need to be triaged and reviewed before they are worked on.
Projects
None yet
Development

No branches or pull requests

1 participant