WooCommerce 7.2 was released on December 14, 2022. This release should be backward compatible with the previous version. It contains:
- 204 commits from 60 contributors in WooCommerce Core
- 11 commits from 7 contributors in WooCommerce Blocks
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
Action | Description |
woocommerce_before_quantity_input_field | Hook to output something before the quantity input field. |
Filter
Filter | Description |
woocommerce_json_search_found_customers | Filter 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_limit | Controls 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
- This was first posted on the WooCommerce developer blog
- Picture courtesy of Pascal Debrunner
Schreibe einen Kommentar