add_action('woocommerce_email_classes', 'register_custom_order_status_emails', 20, 1); function register_custom_order_status_emails($emails) { // 🔐 Check that WooCommerce core email class exists if (!class_exists('WC_Email')) { return $emails; } // ✅ Include custom email classes $custom_email_dir = get_stylesheet_directory() . '/emails/'; require_once $custom_email_dir . 'class-wc-email-customer-long-production.php'; require_once $custom_email_dir . 'class-wc-email-customer-ready-collection.php'; require_once $custom_email_dir . 'class-wc-email-customer-ready-shipping.php'; // ✅ Register classes with WooCommerce $emails['WC_Email_Customer_Long_Production'] = new WC_Email_Customer_Long_Production(); $emails['WC_Email_Customer_Ready_Collection'] = new WC_Email_Customer_Ready_Collection(); $emails['WC_Email_Customer_Ready_Shipping'] = new WC_Email_Customer_Ready_Shipping(); return $emails; }
Copyright 2021. All rights of Local is Always Lekker (PTY) Ltd remain reserved. Company Registration Number: 2021/814980/07. Maintained By Gosmic Designs & Development (PTY) Ltd and Charlie G Designs (PTY) Ltd.
Shop Times:
Wed – Sun
09:00 – 16:00
Holidays:
Times do change, please reach out.
Festive Times
Copyright 2021. All rights of Local is Always Lekker (PTY) Ltd remain reserved. Company Registration Number: 2021/814980/07. Maintained By Gosmic Designs & Development (PTY) Ltd and Charlie G Designs (PTY) Ltd.