itinerisltd/wc-new-order-email-sorting-hat

Send new order emails to different recipients according to product types

0.2.2 2023-09-13 12:43 UTC

This package is auto-updated.

Last update: 2024-12-13 15:24:13 UTC


README

Packagist Version PHP from Packagist Packagist Downloads GitHub License Hire Itineris

Send new order emails to different recipients according to product types.

Minimum Requirements

  • PHP v7.2
  • WordPress v4.9.8
  • WooCommerce v3.5.1
  • Optional Event Tickets v4.8.2.1

Installation

$ composer require itinerisltd/wc-new-order-email-sorting-hat

Usage

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

FAQ

Will you add support for older PHP versions?

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.

It looks awesome. Where can I find some more goodies like this?

This plugin isn't on wp.org. Where can I give a ⭐️⭐️⭐️⭐️⭐️ review?

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:

Feedback

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.

Change Log

Please see CHANGELOG for more information on what has changed recently.

Security

If you discover any security related issues, please email hello@itineris.co.uk instead of using the issue tracker.

Credits

wc-new-order-email-sorting-hat is a Itineris Limited project created by Tang Rufus.

License

wc-new-order-email-sorting-hat is released under the MIT License.