WooCommerce 7.2.0 Release

·

·

WooCommerce 7.2 was released on December 14, 2022. This release should be backward compatible with the previous version. It contains:

As always, it is recommend to create a backup of your site and make sure that your theme and any other plugins are compatible before updating. You can check out this update guide for more information.

What’s new in 7.2?

Stack layout for product task

The new stacked layout highlights recommended product types based on what the user declared during the onboarding wizard, while the least relevant ones are collapsed. It makes it easier to scan information, compare it and make a decision.

You can try out the new layout by going to WooCommerce > Home > Add products.

Actions and Filters

This release adds new actions and new filters.

Actions

ActionDescription
woocommerce_before_quantity_input_fieldHook to output something before the quantity input field.

Filter

FilterDescription
woocommerce_json_search_found_customersFilter to customize the display of the currently selected customer for an order in the order edit page.This is the same filter used in the ajax call for customer search in the same metabox.
woocommerce_get_customer_payment_tokens_limitControls the maximum number of Payment Methods that will be listed via the My Account page.

Template Changes

Template Name
/plugins/woocommerce/templates/cart/cart.php
/plugins/woocommerce/templates/global/form-login.php
/plugins/woocommerce/templates/global/quantity-input.php

Credits