I want to change stock email recipient email address in woocommerce. Already changes admin email but mails are still going to old email.
Asked
Active
Viewed 8,926 times
6
-
1Have you checked - Notification Recipient – Enter email address for notifications. – mujuonly Feb 27 '19 at 11:54
4 Answers
33
This can be set at the Woocommerce settings page.
Admin -> Woocommerce -> Settings -> Products -> Inventory
Its a bit hidden but its there.

JeromeRo
- 341
- 4
- 6
-
1This should be the new updated accepted answer. No DB change needed. – Harish Kotra May 23 '21 at 13:33
-
When product no stock, notification email send to admin & vendor email id! i add only admin email to inventory section but don't know how vendor also get notification email Do you have any idea ? please advise – Haja Nov 20 '21 at 17:39
5
To change stock email recipient, try the following:
add_filter( 'woocommerce_email_recipient_backorder', 'change_stock_email_recipient', 10, 2 ); // For Backorders notification
add_filter( 'woocommerce_email_recipient_low_stock', 'change_stock_email_recipient', 10, 2 ); // For Low stock notification
add_filter( 'woocommerce_email_recipient_no_stock', 'change_stock_email_recipient', 10, 2 ); // For No stock notification
function change_stock_email_recipient( $recipient, $product ) {
// HERE set your replacement email
$recipient = 'thename@email.com';
return $recipient;
}
Code goes on function.php file of your active child theme (or active theme). It should works.

LoicTheAztec
- 229,944
- 23
- 356
- 399
-
Hey, it worked too but i have changed it with database wp_options table option name -> "woocommerce_stock_email_recipient"... Thanks for you help :) – Hritik Pandey Mar 01 '19 at 06:23
-
this apparently can't be set in woocommerce and has to bet set in the database... at least I didn't find it ANYWHERE in the woo backend so I also did it in the database ... very stupid. – Klaus Mar 18 '19 at 17:37
-
When product no stock, notification email send to admin & vendor email id! i add only admin email to inventory section but don't know how vendor also get notification email Do you have any idea ? please advise – Haja Nov 20 '21 at 17:42
4
Admin -> Woocommerce -> Settings -> Products -> Inventory

Matias Arteta
- 51
- 1
-
When product no stock, notification email send to admin & vendor email id! i add only admin email to inventory section but don't know how vendor also get notification email Do you have any idea ? please advise – Haja Nov 20 '21 at 17:42
2
This apparently has to be done in the database directly as there is no backend option to change this and woocommerce apparently simply uses the admin e-mail address from the time it's installed. simply search the table wp_options (or different if you chose another prefix than wp_ for your tables) for the option_name: woocommerce_stock_email_recipient and change it to the new one.

Klaus
- 188
- 1
- 5
-
I have already told that this is one of the possible way to change the email address of stock email recipient.. Thanks for answering it again – Hritik Pandey Mar 26 '19 at 16:09
-
When product no stock, notification email send to admin & vendor email id! i add only admin email to inventory section but don't know how vendor also get notification email Do you have any idea ? please advise – Haja Nov 20 '21 at 17:42