Send a notification to all users when a new post is created on your WordPress site.
Action trigger
Create an event trigger when a post type change status
![](https://appcheap.io/wp-content/uploads/2022/08/image-16.png)
Then click to button “Create”
Recipients
![](https://appcheap.io/wp-content/uploads/2023/10/image-1-1024x306.png)
Conditionals
Expand the event trigger you just create and scroll down to section Conditionals and select “Push notification if”
![](https://appcheap.io/wp-content/uploads/2022/08/image-13-1024x500.png)
Then click to button “Add Conditional”
Click to icon plus to add condition
![](https://appcheap.io/wp-content/uploads/2022/08/image-14.png)
Send notification in this situation is post status change “draft” => “publish” AND post type = “post”
We used variable {old_status} to get old post status and {status} get new post status
![](https://appcheap.io/wp-content/uploads/2023/02/Screenshot-2023-02-27-at-11.45.38.png)