Hi Brajesh Singh,
I need your help again.
I am using this custom notification code. It works perfectly.
When I open a new blog post, all users are notified. (True)
But when I update the post, all users are notified again. (False)
How do I prevent this?
Instead of publish post, you should add notification on transition_post_status and make sure to change that the status transition is from non published to publish.
Please see an example here
Hope that helps.
You must be logged in to reply to this topic.