Skip to content

Instantly share code, notes, and snippets.

@wp126
Created September 2, 2022 05:40
Show Gist options
  • Save wp126/3de392ad4c1af199519092d1e30bf997 to your computer and use it in GitHub Desktop.
Save wp126/3de392ad4c1af199519092d1e30bf997 to your computer and use it in GitHub Desktop.
Send forcefully email to woocommerce on status changed
add_action( 'woocommerce_order_status_split-order', 'bbloomer_status_custom_notificationa', 20, 2 );
function bbloomer_status_custom_notificationa( $order_id, $order ) {
$mailer = WC()->mailer()->get_emails();
$mailer['wc_order_status_email_107387']->trigger( $order_id );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment