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:
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.
-
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 -
PDF Invoices & Packing Slips for WooCommerce300,000+ installs
do_action( 'woocommerce_before_resend_order_emails', $order, $email_to_send )includes/Admin.php:1576 -
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 -
WCPOS5,000+ installs
do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' )includes/API/V1/Orders_Controller.php:644 -
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 -
Oliver POS700+ installs
do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' )includes/rest-api/class-email-rest.php:215 -
Kiwiz for WooCommerce60+ installs
do_action( 'woocommerce_before_resend_order_emails', $this->_order, 'customer_invoice' )includes/document/class-kiwiz-document.php:257 -
StoreSuite20+ installs
do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' )includes/Order/OrderController.php:285 -
Miguel for WooCommerce10+ installs
do_action( 'woocommerce_before_resend_order_emails', $order, 'new_order' )includes/class-miguel-order-create-api.php:1679 -
Vootouch10+ installs
do_action( 'woocommerce_before_resend_order_emails', $order )vootouchservice/save_order.php:457 -
CliedeskFewer than 10 installs
do_action( 'woocommerce_before_resend_order_emails', $order, (string) $email->id )src/Modules/Commerce/Woo/ResendEmail.php:133 -
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 -
SarcioFewer than 10 installs
do_action( 'woocommerce_before_resend_order_emails', $order, $type )src/Assistant/OrderAbilities.php:803 -
DeskoviFewer than 10 installs
do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' )includes/Orders/OrderActions.php:100 -
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 -
DeltaBreen HelpdeskFewer than 10 installs
do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' )includes/woocommerce-actions.php:146 -
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.