1. Home
  2. Docs
  3. Push Notification – Documentations
  4. Examples
  5. Send a notification to all users when post created

Send a notification to all users when post created

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

Then click to button “Create”

Recipients

Recipients info

Conditionals

Expand the event trigger you just create and scroll down to section Conditionals and select “Push notification if”

Then click to button “Add Conditional”

Click to icon plus to add condition

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

Conditionals info

Was this article helpful to you? Yes No

How can we help?