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
- Rename UPLOADS folder with custom WP_CONTENT_DIR
- Upgrading WordPress and Plugins; any Tips to Avoid Trouble?
- Modify column_author in WP_Comments_List_Table
- Converting primary keys from autoincrement integers to UUIDs
- Fast way to add countries as a custom taxonomy term?
- Passing page url into a custom field via the Press-This bookmarklet
- Using transients to store captchas
- How to extend nav-menu-item-control data in Appearance > Customize?
- How to provide a demonstration of WordPress for new customers
- Showcase elementor templates
- Add clickable arrows to parent menu items with children elements e.g. with
- How can I setup up an a pre-populated pdf based on what was entered? [closed]
- Get rid of title from static front page
- $wpdb->insert running multiple times?
- Why does my Posts page only show a single post when using Thematic?
- Specific colours for wordpress author ids
- Attach File Funcion for Common people
- Taxonomy template is not reading
- Conflict between Yoast SEO and my custom theme
- How do I target this page specifically?
- Page Permalinks: Custom URLs
- ACF Shortcode bringing in my shortcode is adding unnecessary line breaks
- Custom MySQL query to list post