Internal emails sent for order status change
-
Hi everyone
I just read through this thread and hoped to find the solution for my issue there. It seems a couple of other people have the following issue as well.
The goal is to disable the internal (admin) email for the order status change from Payment pending to Completed.
I tried this little code snippet and added it to my child theme functions.php file. Unfortunately, emails are still sent:/** * Unhook and remove WooCommerce default emails. */ add_action( 'woocommerce_email', 'unhook_those_pesky_emails' ); function unhook_those_pesky_emails( $email_class ) { // New order emails remove_action( 'woocommerce_order_status_pending_to_completed_notification', array( $email_class->emails['WC_Email_New_Order'], 'trigger' ) ); }
Any ideas how to fix this?
I am super thankful for any useful hint.Cheers
Michael
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Internal emails sent for order status change’ is closed to new replies.