WordPress at Your Fingertips
filter is not described

woocommerce_new_order_email_allows_resend filter-hook . WC 5.0.0

Controls if new order emails can be resend multiple times.

Usage

add_filter( 'woocommerce_new_order_email_allows_resend', 'filter_function_name_6131' );
function filter_function_name_6131( $allows ){
	// filter...

	return $allows;
}
$allows(true|false)
Defaults to false.

Changelog

Since 5.0.0 Introduced.

Where the hook is called

WC_Email_New_Order::trigger()
woocommerce_new_order_email_allows_resend
woocommerce/includes/emails/class-wc-email-new-order.php 105
if ( 'true' === $email_already_sent && ! apply_filters( 'woocommerce_new_order_email_allows_resend', false ) ) {

Where in WP core the hook is used WooCommerce

woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php 114
add_filter( 'woocommerce_new_order_email_allows_resend', '__return_true' );
woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php 116
remove_filter( 'woocommerce_new_order_email_allows_resend', '__return_true' );