I think you need do two changes:
- Add a filter to
woocommerce_email_actions
that adds the action hook which should trigger the notification:
function add_ready_to_ship_woocommerce_email_action( $email_actions ) {
$email_actions[] = 'woocommerce_order_status_ready-to-ship';
return $email_actions;
}
add_filter( 'woocommerce_email_actions', 'add_ready_to_ship_woocommerce_email_action' );
- Change the trigger hook in the email class (add a
_notification
suffix):
// Trigger on new paid orders
add_action( 'woocommerce_order_status_ready-to-ship_notification', array( $this, 'trigger', 10, 2 ) );
Related Posts:
- customer specific email attachment
- Send default WooCommerce email when switching from custom order 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?
- 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]
- Add custom field to woocommerce variations [closed]
- how to get the categories for a single product in a hierarchical way
- 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]
- help to change some colors (woocomerce and store locator) [closed]
- No shipping method has been selected [closed]
- Changer numbers of columns in woocommerce shop
- Woocommerce product permalink not working
- “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
- 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
- Woocommerce custom archive page custom content and shortcode
- WP_Query – sort the results by meta value custom attribute wocoomerce
- 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
- where is admin footer?
- 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
- Custom product status get filtered on all product list views
- 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
- Woocommerce – Remove cart button depending product (post) status
- 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
- 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]
- Custom WP deactivate an email activation link sent to user’s email.
- WooCommerce customise checkout billing form [closed]
- Integrate Woocommerce to a custom theme
- 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
- Custom product sorting archive page
- Add a custom field for sorting the products in a specific category WOOCOMMERCE – Second try
- Add a custom field for sorting the products in a specific category WOOCOMMERCE
- woocommerce, add free sample button on product page
- Can’t change WordPress / WooCommerce attribute value order
- How to edit the new user email notification template
- How to edit text of new user email?
- Querying a meta field on a custom taxonomy archive
- How to: Easily Move a WordPress Install from Development to Production?
- Is there a flowchart for WordPress loading sequence?
- How to change the default registration email ? (plugin and/or non-plugin)
- Essential technical features for high-end WordPress web hosting? [closed]
- How to remove admin menu pages inserted by plugins?
- How to put logs in WordPress
- How to get the Date Format and Time Format settings for use in my template?
- Where are Additional CSS files stored
- Best Practices for Regression Testing WordPress Websites?
- Remove wrapping div and ul from output of wp_nav_menu
- What Is The Use Of map_meta_cap Filter?
- get post author id outside loop
- Custom Walker: how to get ID in function start_lvl
- Creative uses of WordPress [closed]
- How to *remove* a parent theme page template from a child theme?
- How do I make my child theme re-apply the settings that were customised when its parent was active?