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.9.5.1

do_action('woocommerce_before_resend_order_emails') is found 3 times:

  • /includes/admin/meta-boxes/class-wc-meta-box-order-actions.php line 139
    				 * Fires before an order email is resent.
    				 *
    				 * @since 1.0.0
    				 */
    				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 161
    				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' );
    
  • /src/Internal/Orders/OrderActionsRestController.php line 128
    		}
    
    		// phpcs:disable WooCommerce.Commenting.CommentHooks.MissingSinceComment
    		/** This action is documented in includes/admin/meta-boxes/class-wc-meta-box-order-actions.php */
    		do_action( 'woocommerce_before_resend_order_emails', $order, 'customer_invoice' );
    
    		WC()->payment_gateways();
    		WC()->shipping();
    		WC()->mailer()->customer_invoice( $order );
    
    		$user_agent = esc_html( $request->get_header( 'User-Agent' ) );