• Resolved trupsch

    (@trupsch)


    I would like to stop the on-hold email from beeing sent to the customer only for a certain payment option. Could you maybe give me a hint how to do that?

    What i have so far is this, which would remove this email for all orders.

    function unhook_those_pesky_emails( $email_class ) {
    	
        // New order emails
        remove_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $email_class->emails['WC_Email_New_Order'], 'trigger' ) );
    
    }
    add_action( 'woocommerce_email', 'unhook_those_pesky_emails' );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Prevent pending to on-hold email from sending only for certain payment options’ is closed to new replies.