Send new order emails to different recipients according to product types.
- PHP v7.2
- WordPress v4.9.8
- WooCommerce v3.5.1
- Optional Event Tickets v4.8.2.1
$ composer require itinerisltd/wc-new-order-email-sorting-hat
Enable Enable new order email notification
on WooCommerce » Emails » New Order » Manage
Define your notifiers:
// This is an example!
add_filter('wc_new_order_email_sorting_hat_notifiers', function (array $notifiers): array {
return array_merge([
new SpecificEventTicketNotifier(
'new_order_email_refinery_course_event_ticket_recipients',
__('Course Event Ticket Recipient(s)', 'fabric'),
'course'
),
new EventTicketNotifier(),
], $notifiers);
});
Enter comma-separated recipients lists on WooCommerce » Emails » New Order Email Sorting Hat
Never! This plugin will only works on actively supported PHP versions.
Don't use it on end of life or security fixes only PHP versions.
- Articles on Itineris' blog
- More projects on Itineris' GitHub profile
- Follow @itineris_ltd and @TangRufus on Twitter
- Hire Itineris to build your next awesome site
Thanks! Glad you like it. It's important to make my boss know somebody is using this project. Instead of giving reviews on wp.org, consider:
- tweet something good with mentioning @itineris_ltd
- star this Github repo
- watch this Github repo
- write blog posts
- submit pull requests
- hire Itineris
Please provide feedback! We want to make this library useful in as many projects as possible. Please submit an issue and point out what you do and don't like, or fork the project and make suggestions. No issue is too small.
Please see CHANGELOG for more information on what has changed recently.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
wc-new-order-email-sorting-hat is a Itineris Limited project created by Tang Rufus.
wc-new-order-email-sorting-hat is released under the MIT License.