Looks like I was overcomplicating things. This is the solution:
add_filter( 'woocommerce_email_classes', 'custom_woocommerce_email_classes', 10, 1 );
function custom_woocommerce_email_classes( $email_classes ) {
$email_classes[ 'WC_Email_Customer_On_Review_Request' ] = include_once 'includes/classes/class-wc-email-customer-on-review-request.php';
// Register custom trigger to send on-hold email when status is switched from on-review to on-hold.
add_action( 'woocommerce_order_status_on-review_to_on-hold_notification', [
$email_classes[ 'WC_Email_Customer_On_Hold_Order' ], 'trigger'
], 10, 2 );
return $email_classes;
}
Related Posts:
- Send a custom WooCommerce email when custom order change [closed]
- customer specific email attachment
- where is admin footer?
- Custom product status get filtered on all product list views
- Woocommerce – Remove cart button depending product (post) status
- how to override woocommerce specific loop or archive-product.php [closed]
- Get all products with a custom attribute
- Customizing the Subject Field in WordPress’ Notification Emails?
- Rearrange elements outputted by comment_form()
- pagination in woocommerce order history page
- Show attribute description when filtering by that attribute
- Create a Custom menu item fetched by Product Categories and Sub Categories
- Disable email field on WooCommerce customer account details
- Show post page only if the user has bought a specific product
- redirect product-category to a custom page
- Woocommerce Product page edit
- How to pass external variables to the wp_new_user_notification_email filter?
- Setting up Different Layouts for Each Product Category and Subcategory [closed]
- How to redirect WooCommerce shop URL?
- Unable to display custom fields on WooCommerce product pages
- Change WooCommerce product price based on category and GEO IP country
- How to change email address used for registrations?
- What’s wrong with Customizing new user notification email by add_filter?
- Automatically Update Woocommerce Prices [closed]
- Woocommerce: Prevent sending of email when order is “Completed”
- Automatically remove a canceled order in Woocommerce
- Sort posts by multiple meta key values
- Add custom field to woocommerce variations [closed]
- how to get the categories for a single product in a hierarchical way
- how to do a processing Orders into Complete after x Minutes or x hour in WooCommerce [closed]
- Viewing checkout page removes fees from mini cart
- woocommerce_checkout_fields modifying existing billing_phone label created new field
- How to add an extra button on woocommerce shop page and use it to send the product info with image in a mail? [closed]
- how do I remove the shipping from woocommerce thankyou page and from the email
- Woocomerce custom billing address fields display in order details [closed]
- Color swatches on category page? [closed]
- WooCommerce order complete email logic
- help to change some colors (woocomerce and store locator) [closed]
- Custom Status of Custom Post type need to EXCLUDE from Taxonomy pages
- No shipping method has been selected [closed]
- OrderBy multiple custom meta fields
- Order posts with a custom field but also without
- Changer numbers of columns in woocommerce shop
- Woocommerce product permalink not working
- Send email notifications to a defined email address depending if a product in order has a specific TAG [closed]
- “woocommerce_form_field()” function having issues after latest woocommerce update [closed]
- How to customize shipping region/states on WooCommerce
- Rename WooCommerce sorting dropdown options [closed]
- WooCommerce custom billing fields on email address
- Woocommerce custom checkout form
- Woocommerce custom field calculation
- Hiding Short Description in Shop Page, WooCommerce
- wordpress shortcode not working
- Allow a subscriber to be an author and view only his post
- I found this code to be very useful, how can I change it to a text that display “Product versions and period of last update” rather than a button?
- Customizing woocommerce product page
- WordPress woocommerce new order email not working
- Woocommerce custom archive page custom content and shortcode
- WP_Query – sort the results by meta value custom attribute wocoomerce
- Custom Email via Hook only for completed order
- Access custom meta_data in processing order email
- Style WooCommerce Product Search Widget
- Product page not found if product data is set Appointment Service
- I want to fusion the product columns in email table order
- Query Product categories what have a custom field
- mailchimp integration on a custom footer
- How to get the full product name by ignoring custom modification on it
- Woocommerce custom “My Account” Tab – Add Save button
- Need to add custom text field to Woocommerce under add to cart button
- Moving Quantity after product description
- Can we add an extra button on woocommerce shop page and use it to send the product info including image in a mail?
- Upload advanced custom field text link array with csv
- WordPress Performance and bulk edits
- I want to use a product thumbnail completely different than the product image
- Including a Customized Initialize File with a wordpress header
- How to Remove wpautop in woocommerce includes folder class-wc-order-item.php
- Conditional email recipient based off Shipping Method [closed]
- Best way to sort posts with different types by distance
- WooCommerce – Adding custom HTML to specific product pages
- How to send email with wp_mail() with from email taken from contact form instead of the host?
- How do I change text of a product template in a WooCommerce theme? [closed]
- Pre_Get_Posts order DESC not registering
- Custom WP deactivate an email activation link sent to user’s email.
- WooCommerce customise checkout billing form [closed]
- Integrate Woocommerce to a custom theme
- Woocommerce custom taxonomy order
- Admin new order email customization
- woocommerce display product category on checkout page [closed]
- Save And Display Mp3 Audio files on WooCommerce product page with Dokan
- Change the User/ Author of the Products
- Show total sales for each products on search results page Woocommerce
- Woocommerce send custom email receipt based on product attribute
- Change in credit card payment button for woocommerce
- How to display product variations on same row
- Woocommerce admin order email customize – remove product short description
- Custom product sorting archive page
- Is it possible to make widget return only data (eg, array)?
- Save Textarea on WordPress Frontend
- Pull certain WordPress posts on custom CMS instead and 301 wordpress to it?
- Create users via PHP