I want to add custom order status in my woocommerce site.And whenever status changes to that custom status I want to send mail.
I have tried Send an email notification when custom order status changes in WooCommerce
as well as https://github.com/sarun007/custom-email-plugin/tree/master
But didn't worked
I am using woocommerce 3.2.6 version
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
To make it work for a new custom order status (here "Awaiting delivery") you should need:
The code:
Code goes in function.php file of your active child theme (or active theme).
Tested and works (should work on any Woocommerce versions above 2.5)