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
- Which WooCommerce hook do I need to use to place the coupon field after the checkout sidebar
- Woocommerce HTML email option unavailable
- Categories not shown in admin after adding woocommerce products via wp wc cli
- Enabling autosave when plugin disabled
- Woocommerce PHP site that shows table with orders from specific category
- Woocommerce Update Order Notes Date
- Shipping Method does not inherit settings from the class
- My woocommerce checkout page and woocommerce setting page are not responding [closed]
- Woocommerce Shortcode custom orderby not working
- What’s the fastest way to import products with variations in WooCommerce (CSV, XML, …) [closed]
- Can’t filter out variable products in sale from wp_get_products loop (or shortcode) [closed]
- What Hook/Action is performed when a field in checkout form is changed in WooCommerce
- Benefits over using object method over property from $product?
- WooCommerce – change child category URL structure
- Custom WooCommerce rewrite rules with comma delimiter
- Set city as required if country is Singapore
- Enable Gutenberg for Woocommerce
- How to change product category permalinks programmatically?
- Make e-Mail optional on Woocommerce sign up
- Adapt shipping surcharge code [closed]
- Placing Lock Icon on WooCommmerce “Place Order” Checkout Button (WordPress ‘ignoring’ Changes…)
- How to Sync Woocommerce and CRM via External API
- Add sale count next to star rating in woocommerce single product page
- WordPress user ID prefix
- WooCommerce – different icons for product categories
- WordPress returning “XHR” even when access keys are used
- Is it possible to hide certain products from displaying in the search results
- Send Processing Order Email from custom payment plugin
- WordPress Woocommerce product-category info on one line [closed]
- Login page so wide [closed]
- how to get the current page endpoint