If your code works but it works for all emails you can add a check for only completed orders like this
add_action( 'woocommerce_email_before_order_table', 'mm_email_before_order_table', 10, 4 );
function mm_email_before_order_table( $order, $sent_to_admin, $plain_text, $email ) {
// if not completed order, exit
if ($email->id != 'customer_completed_order') return;
echo '<p>extra information</p>';
}
Related Posts:
- Woocommerce: Prevent sending of email when order is “Completed”
- WooCommerce order complete email logic
- Send email notifications to a defined email address depending if a product in order has a specific TAG [closed]
- WordPress woocommerce new order email not working
- Access custom meta_data in processing order email
- Conditional email recipient based off Shipping Method [closed]
- Woocommerce admin order email customize – remove product short description
- WooCommerce lost password reset flow not working with SendGrid (redirect loop)
- Preventing WooCommerce email sending only on particular conditions
- woocommerce fail to replace template string in email title [closed]
- WooCommerce: display text instead of raw checkbox value email
- Editing Header Titles of each details in woocommerce Order Email [closed]
- Woocommerce change tax rate programmaticly
- Woocommerce : How to attach an custom attachment with customer-processing-order.php email template [closed]
- WooCommerce email text based on category && shipping zone && payment method [closed]
- WooCommerce: Email Notifications
- How do I get the latest note on the order at woocommerce? [closed]
- Create WooCommerce new order with specific ID
- woocommerce_email_attachments filter arguments [closed]
- WordPress ‘on behalf of’ email
- WooCommerce: The model of e-mail is displaying only the html, not css [closed]
- How do I hide the purchase note in the WooCommerce ‘order completed’ email?
- Add custom order meta to Order Completed email
- how to do a processing Orders into Complete after x Minutes or x hour in WooCommerce [closed]
- How to add a user custom field into Woocommerce emails?
- WooCommerce quick checkout form? [closed]
- Custom Admin Email Subject for Woocommerce (3.8.0) Orders
- woocommerce email template detect email recipient
- WooCommerce orderby template disappears and not longer works on search page
- Adding extra email address who receives email like admin – woocommerce
- How to get woocommerce selected variation from order object
- Add shipping address to Woocommerce order emails [closed]
- Woocommerce emails from gmail not being sent
- Cancelled orders move to Trash automatically in Woocommerce – how to disable?
- Send admin new order email to logged in user as well
- how can i add an additional action into woocommerce admin order page through my plugin?
- Create a regular post for every WooCommerce order
- Create new email in WooCommerce
- How to alter taxes amounts when updating an order
- How to check if woocommerce_order_item_name is use in email?
- Sort products by Sale price and stock status
- Create order actions from custom fields woocommerce
- How to sort products by price ASC and place all no price products to the end? (Woocommerce)
- How to add (and change the font of) the short product description to order page and customer’s new order e-mail [closed]
- How to send Woocommerce Customer Details (Name, Email and Phone Number) to Admin upon signup
- How to change lost password email text using custom plugin wordpress?
- Using admin email in billing address
- how can my customers view their purchased products history like an invoice in a specific page on WordPress
- Change the customer’s name to a link on an order management page
- How to save one API response to WooCommerce order meta data
- Forgot password flow does not work, getting email with a link but after clicking link it’s not working
- Send a different “thank you” email based on payment method
- Customer Email Address
- Adding time of order to Admin email for new order
- Add button linked to single product page on order detail page
- Multiple sorting criteries (order by)
- Send default WooCommerce email when switching from custom order status
- Woocommerce order_complete email dont send after changing order status via sql
- how to add custom reviews button in woocommerce order complete generated mail
- How to add coupon expiry date into the followup emails?
- Product atributes in title of order (not in description)
- Manual Woocommerce Complete order Emails
- Turkish Character Problem on mailing
- WooCommerce: Order Details Table > Add Product Meta
- How to override email text New Customer Order?
- Woo-Commerce new order email no style attached
- WooCommerce – How to add a custom field to only a specific email template [closed]
- Insert a custom field as a second email address to a completed order in WooCommerce
- Critical error on woocommerce checkout page
- add_filter to modify woocommerce_cart_item_name hyperlink
- How to get rid of the hover zoom in WooCommerce single products
- How do I display certain products via their category on a section of a page using PHP?
- Programmatically change Payment Methods WooCommerce
- pre_get_posts with WooCommerce Shortcode Query
- Woocommerce – disable «place order» until user checks Privacy Policy
- Calling calculate_shipping() with ajax in woocommerce
- Adding product SKU before cart item name in WooCommerce
- Filter WooCommerce Orders query with user meta data
- Delete All Product Images in phpmyadmin
- I want to get the value of a select attribute in the checkout page, and then use it to show or not the delivery data
- How to display text between product thumbnail and CTA button on WooCommerce “Shop” page
- how to create additional button on single product page
- Sender e-mail address, for new order email to customer, is suddenly wrong [closed]
- Pass class to Woocommerce shortcode [relative_products] [closed]
- How can I remove a WooCommerce Product Tab’s sub section in wp-admin?
- is_shop doesn’t work for woocommerce [closed]
- I want to store user password (during registration) in an other table in the same database in addition to the user table MD5 Hash
- How to edit the default woo-commerce Store page meta title tag “Products”
- Apply CSS to certain product thumbnails only
- Order Woocommerce Products by On Sale and Alphabetically
- How to track product price changes?
- Woocommerce Flexslider touch functionality on desktop not working
- How to echo woocomerce attributes values in dropdown box
- Add new page in WooCommerce My Account page
- Uninitialised Parameters using woocommerce_checkout_update_order_meta hook
- Woocommerce customer role doesn’t change if user is already a subscriber [closed]
- Decrease stock quantity when a variation is sold using Woocommerce
- WooCommerce show decimals in totals [closed]
- I want to update shipping charge $0 for all Woocommeerce Subscription auto-renewal orders
- using custom pages for myaccount in woocommerce