woocommerce_before_resend_order_emails

woocommerce_before_resend_order_emails

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_before_resend_order_emails') is found 2 times:

  • /includes/admin/meta-boxes/class-wc-meta-box-order-actions.php line 134
     
    			$action = wc_clean( wp_unslash( $_POST['wc_order_action'] ) ); // @codingStandardsIgnoreLine
    
    			if ( 'send_order_details' === $action ) {
    				do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' );
    
    				// Send the customer invoice email.
    				WC()->payment_gateways();
    				WC()->shipping();
    				WC()->mailer()->customer_invoice( $order );
    
    
  • /includes/admin/meta-boxes/class-wc-meta-box-order-actions.php line 151
    				add_filter( 'redirect_post_location', array( __CLASS__, 'set_email_sent_message' ) );
    
    			} elseif ( 'send_order_details_admin' === $action ) {
    
    				do_action( 'woocommerce_before_resend_order_emails', $order, 'new_order' );
    
    				WC()->payment_gateways();
    				WC()->shipping();
    				add_filter( 'woocommerce_new_order_email_allows_resend', '__return_true' );
    				WC()->mailer()->emails['WC_Email_New_Order']->trigger( $order->get_id(), $order, true );
    				remove_filter( 'woocommerce_new_order_email_allows_resend', '__return_true' );