Email notification for custom order status
-
Hai,
I create a new custom order status with code from an article. I made a custom status named “shipping’. This is the code// Register New Order Statuses function wpex_wc_register_post_statuses() { register_post_status( 'wc-shipping-progress', array( 'label' => _x( 'Shipping', 'WooCommerce Order status', 'text_domain' ), 'public' => true, 'exclude_from_search' => false, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, 'label_count' => _n_noop( 'Approved (%s)', 'Approved (%s)', 'text_domain' ) ) ); } add_filter( 'init', 'wpex_wc_register_post_statuses' ); // Add New Order Statuses to WooCommerce function wpex_wc_add_order_statuses( $order_statuses ) { $order_statuses['wc-shipping-progress'] = _x( 'Shipping', 'WooCommerce Order status', 'text_domain' ); return $order_statuses; } add_filter( 'wc_order_statuses', 'wpex_wc_add_order_statuses' );
But I need an email notification that should be sent to the customer and admin when we change the order status to ‘Shipping’, just like another email notification from basic woocommerce status order. Anyone can help, please? I wish there is an answer without installing a plugin.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Email notification for custom order status’ is closed to new replies.