Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Trigger notification with custom string

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 59525

Trending Articles