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 notification event for deleting entries (GK only) #1972

Merged

Conversation

doekenorg
Copy link
Contributor

@doekenorg doekenorg commented Jan 17, 2024

This PR closes #1819

I moved the notification logic to a separate service class. To avoid issues when people switch mode from delete to trash the hook listens to both.

Added unit tests to confirm inner workings.

Todo:

  • Trigger event on a removal of entry in gravity forms

@zackkatz Should that be a separate event? It feels kind of weird triggering the GravityView - Entry is deleted event when you delete an entry in Gravity Forms.

@zackkatz
Copy link
Member

@doekenorg What do you mean "removal of entry in gravity forms"? If trash/delete, I believe this item is resolved.

@doekenorg
Copy link
Contributor Author

@doekenorg What do you mean "removal of entry in gravity forms"? If trash/delete, I believe this item is resolved.

@zackkatz yeah sorry, that was resolved indeed 👍

@zackkatz zackkatz merged commit 3b410ac into develop Jan 22, 2024
1 check failed
@zackkatz zackkatz deleted the feature/1819-trigger-notification-when-entry-is-deleted branch January 22, 2024 16:11
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.

Trigger notification when entry is deleted
2 participants