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_3963' ); function filter_function_name_3963( $allows ){ // filter... return $allows; }
- $allows(true|false)
- Defaults to true.
Changelog
Since 5.0.0 | Introduced. |
Where the hook is called
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 121
add_filter( 'woocommerce_new_order_email_allows_resend', '__return_true' );
woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php 123
remove_filter( 'woocommerce_new_order_email_allows_resend', '__return_true' );