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

Add a listener to track wp_mail events #66

Merged
merged 2 commits into from
Apr 10, 2024
Merged

Add a listener to track wp_mail events #66

merged 2 commits into from
Apr 10, 2024

Conversation

arunshenoy99
Copy link
Member

Proposed changes

Type of Change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

  1. Adds a new listener to track wp_mail events.
  2. Tracks whenever an email is sent successfully using the wp_mail_succeeded hook.

@ajayadav09 ajayadav09 requested review from ajayadav09 and removed request for ajayadav09 April 5, 2024 15:48
Copy link

@ajayadav09 ajayadav09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good!

includes/EventManager.php Outdated Show resolved Hide resolved
includes/Listeners/WPMail.php Show resolved Hide resolved
includes/Listeners/WPMail.php Show resolved Hide resolved
@wpscholar wpscholar merged commit 04217ce into main Apr 10, 2024
5 of 7 checks passed
@wpscholar wpscholar deleted the add/wp-mail-event branch April 10, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants