Skip to content

Instantly share code, notes, and snippets.

@stuartduff
Created October 2, 2020 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartduff/4e9f54fc6cb3972acaca24f447c7a596 to your computer and use it in GitHub Desktop.
Save stuartduff/4e9f54fc6cb3972acaca24f447c7a596 to your computer and use it in GitHub Desktop.
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