Created
August 30, 2015 02:37
-
-
Save BurlesonBrad/d43c283fb594d82c7902 to your computer and use it in GitHub Desktop.
Two Emails for Low Stock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function woo_extra_email_recipient($recipient, $object) { | |
| $recipient = $recipient . ', [email protected]'; | |
| return $recipient; | |
| } | |
| add_filter( 'woocommerce_low_stock', 'woo_extra_email_recipient', 10, 2); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now, what's the correct php code when Amit wants to use both
woocommerce_no_stockandwoocommerce_low_stock