Support » Plugin: WooCommerce » Need to send on-hold email notification When status change

  • Resolved clakmal9



    I need to send emails when changing order status processing to on-hold. I tried to do that using below code but unfortunately, it doesn’t work

    add_filter( ‘woocommerce_email_actions’, ‘add_another_email_action’, 9999 );

    function add_another_email_action( $array ) {


    return $array;


    add_action( ‘woocommerce_email’, ‘hook_another_email_on_hold’, 9999 );

    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’ ) );


    Please anyone can help me to do this
    Thanks & Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Stef


    You could try

     function wc_on_hold_order_add_customer_email( $recipient, $order ){
         return $recipient . ',' . $order->billing_email;
     add_filter( 'WC_Email_Customer_On_Hold_Order', 'wc_on_hold_order_add_customer_email', 10, 2 );

    Make sure email is enabled and add this to your child theme’s function.php file. Tested and works with latest version of WC.

    Hello Stef

    Thank You for your kind reply

    Unfortunately, it’s not working. I’m using the latest version of WC




    Make sure you’re clearing your cache and that the apostrophes are accurate. Sometimes different keyboards change the tick and apostrophes.

    Make sure also you are creating the process correctly.

    1. If the test order is already in the On Hold position you need to select a different process. Click update

    2. Go ahead and select the On Hold then click update again. And the email will be sent.

    Plugin Support Rynald0s


    Automattic Happiness Engineer


    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.


Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.