Three ways you can disable the COMPLETED order status notification email on your WooCommerce shop.
Method 1: Via WooCommerce Settings Page
You can easily disable the option from WooCommerce Settings page.
- Login to your Dashboard
- Navigate to WooCommerce -> Settings page
- Click on Emails tab
- Click on the Manage button of Completed Order row
- Turn off the Enable this email notification checkbox
- Click on the Save changes button
Method 2: Via WooCommerce Hook
You can also disable the notification via WooCommerce hook. You will write the code into your theme’s functions.php file or your custom plugin’s file.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
/** * Disabling the completed order notification. * * @copyright 2019 PaulChimnoy.com * @author Paul Chinmoy */ add_action( 'woocommerce_email', 'paulc_disable_completed_order_email' ); function paulc_disable_completed_order_email( $email_class ) { // Completed order emails remove_action( 'woocommerce_order_status_completed_notification', array( $email_class->emails['WC_Email_Customer_Completed_Order'], 'trigger' ) ); } |
Method 3: Via WooCommerce Filter
You can also disable the notification via WooCommerce filter. You will write the code into your theme’s functions.php file or your custom plugin’s file.
1 2 3 4 5 6 7 |
/** * Disabling the completed order notification. * * @copyright 2019 PaulChimnoy.com * @author Paul Chinmoy */ add_filter( 'woocommerce_email_enabled_customer_completed_order', '__return_false' ); |
Leave a Reply