WooCommerce email IDs and order status change for email notifications
问题 I am trying to add a function that will log any email that is sent through order status changes. Is there a hook I can use that is triggered right before an order notification email is sent? 回答1: Updated All the available hooks responsible for triggering email notifications are located in WC_Emails init_transactional_emails() method and are action hooks: woocommerce_low_stock , woocommerce_no_stock , woocommerce_product_on_backorder , woocommerce_order_status_pending_to_processing ,