WordPress filter hook

woocommerce_resend_order_emails_available

Fired by 2 WordPress plugins, running on 300K+ sites between them.

How to use woocommerce_resend_order_emails_available

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'woocommerce_resend_order_emails_available', function( $order_emails ) {
	// Change $order_emails here.
	return $order_emails;
}, 10, 1 );

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

2 plugins that fire woocommerce_resend_order_emails_available

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

  1. PDF Invoices & Packing Slips for WooCommerce icon PDF Invoices & Packing Slips for WooCommerce300,000+ installs apply_filters_deprecated( 'woocommerce_resend_order_emails_available', array( $order_emails ), '3.5.7', 'wpo_wcpdf_resend_order_emails_available' ) includes/Admin.php:506
  2. Invoice management for Woocommerce icon Invoice management for WoocommerceFewer than 10 installs apply_filters( 'woocommerce_resend_order_emails_available', array( 'new_order', 'cancelled_order', 'customer_processing_order', 'customer_completed_order', 'customer_invoice' ) ) admin/editor.class.php:716

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.