Hi,
Here is how you can add support for other post statuses to trigger “post updated”.
Thread Starter
ars111
(@ars111)
Thank you Anna for your reply.
May you tell me please are you sure this can work for Order statuses for products in woocoommerce? I tried this:
add_filter( ‘notification/trigger/wordpress/post/updated/statuses’, function( $statuses, $order_status ) {
if ( ‘product’ === $order_status ) {
$statuses[] = ‘on-hold’;
}
return $statuses;
}, 10, 2 );
But seems like it is not working for sending notification every time when order that is on-hold is changed. If anyone can help, I will appreciate that.
Thank you in advance.
Hi,
Our free plugin cannot cover all custom post types and that’s why we wrote Notification: WooCommerce which has a trigger “Order Updated” that we suggest you use.
In your code, $ order_status seems to be incorrect, it should be “order”, not “product”, but it depends on what trigger you are using.
Thread Starter
ars111
(@ars111)
Thank you @annaszalkiewicz
I really did not see that you have premium upgrade. You should promote it better on your free version site since it has more features. Thank you.