Event “Action performed” doesn’t work in mail notifications
-
Hello guys,
I hope you have a nice week ??Super useful plugin, that I will recommend in the future!
I’ve spotted a bug though, that is bothering me a lot when it comes to mail notifications:
I’ve been trying to trigger mail notifications for every time one of the editors / admins deletes a post (no matter the type).After dozens of different tests, I came to the conclusion that the “Action performed” event in the conditions for mail notifications is not working. Here is more information:
Observed behaviors:
– If I trigger only events that are “Action performed” for the mail notification, I will never receive the notification (no matter what type of action would be performed)
– If I trigger one event “Action performed” (no matter which action) and on event “Action type is equal to Post”, I will receive all the mail notifications for any kind of action performed.
– If I trigger several events “Action performed” (no matter which actions) and on event “Action type is equal to Post”, I will receive all the mail notifications for any kind of action performed.
Steps to reproduce (different use cases I tried):
– Set up only one event for the mail notification:
“Action performed” “is equal to” “Deleted”
– Put any type of post (page or CPT) to the trash
– No mail notification at all!– Set up only one event for the mail notification:
“Action performed” “is equal to” “Trashed”
– Put any type of post (page or CPT) to the trash
– No mail notification at all!– Set up two events for the mail notification:
“Action performed” “is equal to” “Deleted”
“Action Type” “is equal to” “Post”
– Put any type of post (page or CPT) to the trash
– Mail notification works ! BUT:
– Create any type of post (page or CPT)
– Mail notification for new post created sent!
– Update any type of post (page or CPT)
– Mail notification for post updated sent!Another step to reproduce:
– Please see the screenshot linked here: https://ibb.co/mtifbR
– The outcome is that I receive a mail notification for any type of action performed on a post, while I should only receive a mail notification of a deleted post.Last step to reproduce:
– Please see the screenshot linked here: https://ibb.co/kDzLbR
– The outcome is that mail notification will never be sent, no matter which type of action I perform on a post (delete, update, create etc…)Expected behavior:
– Set up two events for the mail notification:
“Action Type” “equals to” “Post”
“Action performed” “equals to” “Deleted” (or “Trashed”)
– Delete a post (a page, a post or a CPT)
– Mail notification about a “Deleted” (or “Trashed”) Post received
– Perform whatever other type of action on a post (page, post or CPT)
– No mail notification for that other type of action receivedCan you please advise on what I should do to obtain this expected behavior?
Am I doing things wrong? Or maybe there’s a tiny bug on your side?Just before publishing this post, I looked into some source files from your plugin, but I didn’t find where the problem could come from. I don’t have much time to dedicate on this, sorry :/
Have a nice end of the week!
Best,
Jean
- The topic ‘Event “Action performed” doesn’t work in mail notifications’ is closed to new replies.