Created
September 2, 2022 05:40
-
-
Save wp126/3de392ad4c1af199519092d1e30bf997 to your computer and use it in GitHub Desktop.
Send forcefully email to woocommerce on status changed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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