The code in this download provides a method to split order notification emails among different admin recipients based on specific products purchased. If you have specific team members assigned to handle certain products and would like to ensure they only receive relevant new order emails without being inundated with notifications for all products, this code does exactly that.
The code adds custom field to the Edit product page which enables the admin to add their email address. When a new order is placed for that product, the order email gets sent to that specific email address so other admins don’t receive it. They can still view all orders in the backend without having to sift through emails for every order.
Demo Video
The default admin email is set to brad@wpsites.net. We change this to test@wpsites.net on the Edit Product admin page and the new order email gets sent to the custom admin email address, test@wpsites.net.
Installation
There’s only 1 step :
Copy and paste the PHP code from the functions file ( without the opening PHP tag ) to the end of your child themes functions file or custom functionality/code snippets plugin.
You can then add the custom admin email for new order notification on any Edit product screen.
Reviews
There are no reviews yet.