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
function add_another_email_action( $array ) { | |
$array[]='woocommerce_order_status_processing_to_on-hold'; | |
return $array; | |
} | |
add_filter( 'woocommerce_email_actions', 'add_another_email_action' ); | |
function hook_another_email_on_hold( $email_class ) { | |
add_action( 'woocommerce_order_status_processing_to_on-hold_notification', array( $email_class->emails['WC_Email_Customer_On_Hold_Order'], 'trigger' ) ); | |
} | |
add_action( 'woocommerce_email', 'hook_another_email_on_hold' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment