Title: Trigger notification with custom string
Last modified: August 10, 2020

---

# Trigger notification with custom string

 *  Resolved [marsvieyra](https://wordpress.org/support/users/marsvieyra/)
 * (@marsvieyra)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/trigger-notification-with-custom-string/)
 * Hello,
 * I am using a plugin called RestroPress which creates orders and allows users 
   to assign the orders different statuses, such as `PENDING`, `ACCEPTED` or `READY`.
 * Here’s a piece of code that sends an email when these conditions are met:
 * `if ( !empty( $payment_id ) && $check_notification_enabled && $new_status !=='
   pending' && $new_status == 'ready' ) {`
 * How can I, with your plugin, trigger a push notification when the order status
   is set to `READY`?
 * Meaning, is there a way to determine the STRING and the VALUE that it has to 
   meet in order to trigger the notification?
 * Thanks 🙂

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * (@kubitomakita)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/trigger-notification-with-custom-string/#post-13846721)
 * Hi [@marsvieyra](https://wordpress.org/support/users/marsvieyra/)
 * I think you could use the Order Updated trigger with our [Conditionals add-on](https://bracketspace.com/downloads/notification-conditionals/)
   where you’d check if the order status is `ready`.
 * Otherwise, a custom trigger will be needed.

Viewing 1 replies (of 1 total)

The topic ‘Trigger notification with custom string’ is closed to new replies.

 * ![](https://ps.w.org/notification/assets/icon-256x256.gif?rev=3476901)
 * [Notification - Custom Notifications and Alerts for WordPress](https://wordpress.org/plugins/notification/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/notification/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/notification/)
 * [Active Topics](https://wordpress.org/support/plugin/notification/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/notification/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/notification/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [string](https://wordpress.org/support/topic-tag/string/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/trigger-notification-with-custom-string/#post-13846721)
 * Status: resolved