WordPress action hook

woocommerce_before_resend_order_emails

Defined by WooCommerce and fired by 17 plugins in total, running on 7.4M+ sites between them.

“Fires before an order email is resent.”

How to use woocommerce_before_resend_order_emails

It's an action: your callback runs at that point and receives 2 arguments. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'woocommerce_before_resend_order_emails', function( $order, $arg2 ) {
	// Your code runs here.
}, 10, 2 );

Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

17 plugins that fire woocommerce_before_resend_order_emails

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WooCommerce icon WooCommerce7+ million installs do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' ) includes/admin/meta-boxes/class-wc-meta-box-order-actions.php:141
  2. PDF Invoices & Packing Slips for WooCommerce icon PDF Invoices & Packing Slips for WooCommerce300,000+ installs do_action( 'woocommerce_before_resend_order_emails', $order, $email_to_send ) includes/Admin.php:1576
  3. Germanized for WooCommerce icon Germanized for WooCommerce70,000+ installs do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_paid_for_order' ) includes/admin/class-wc-gzd-admin.php:668
  4. WCPOS icon WCPOS5,000+ installs do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' ) includes/API/V1/Orders_Controller.php:644
  5. Phone Orders for WooCommerce icon Phone Orders for WooCommerce1,000+ installs do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' ) classes/tabs/class-wc-phone-orders-add-order-page.php:1846
  6. Oliver POS icon Oliver POS700+ installs do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' ) includes/rest-api/class-email-rest.php:215
  7. Kiwiz for WooCommerce icon Kiwiz for WooCommerce60+ installs do_action( 'woocommerce_before_resend_order_emails', $this->_order, 'customer_invoice' ) includes/document/class-kiwiz-document.php:257
  8. StoreSuite icon StoreSuite20+ installs do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' ) includes/Order/OrderController.php:285
  9. Miguel for WooCommerce icon Miguel for WooCommerce10+ installs do_action( 'woocommerce_before_resend_order_emails', $order, 'new_order' ) includes/class-miguel-order-create-api.php:1679
  10. Vootouch icon Vootouch10+ installs do_action( 'woocommerce_before_resend_order_emails', $order ) vootouchservice/save_order.php:457
  11. Cliedesk icon CliedeskFewer than 10 installs do_action( 'woocommerce_before_resend_order_emails', $order, (string) $email->id ) src/Modules/Commerce/Woo/ResendEmail.php:133
  12. Invoice management for Woocommerce icon Invoice management for WoocommerceFewer than 10 installs do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' ) admin/meta-boxes/class-wc-meta-box-order-actions.php:100
  13. Sarcio icon SarcioFewer than 10 installs do_action( 'woocommerce_before_resend_order_emails', $order, $type ) src/Assistant/OrderAbilities.php:803
  14. Deskovi icon DeskoviFewer than 10 installs do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' ) includes/Orders/OrderActions.php:100
  15. Business Bloomer Advanced Manual Orders for WooCommerce icon Business Bloomer Advanced Manual Orders for WooCommerceFewer than 10 installs do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' ) includes/amowc-payment.php:112
  16. DeltaBreen Helpdesk icon DeltaBreen HelpdeskFewer than 10 installs do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' ) includes/woocommerce-actions.php:146
  17. Dispatchable Order Verification for WooCommerce icon Dispatchable Order Verification for WooCommerceFewer than 10 installs do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' ) src/Queue/QueueActions.php:171

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.