Mix and Match v2.7.0 – PHP 8.2 Compatibility & Extension Hooks
Important
Minimum WordPress version updated
This version now requires WordPress 5.0 or higher.
New
Removed dynamic object properties for PHP 8.2 compatibility
Dynamic properties have been removed from plugin objects to prevent deprecation warnings in PHP 8.2 and newer.
If you are using the Not Sold Separately mini-extension, you must update it to version 2.4 or later to remain compatible.
Added new developer hooks for container updates
Introduced the following WordPress hooks to improve compatibility with Mix and Match mini-extensions:
wc-mnm-initialize.${product_type}(action)wc.mnm.container.container-updated(action)wc.mnm.container.update_order_item_data(filter)
These replace earlier experimental triggers such as the wc_mnm_update_container_order_item_data handler and the previous JavaScript custom event used in order metabox scripts.
Fixes
Show stock status for child items when container stock is insufficient
Child item availability and stock status are now displayed correctly when the container itself has insufficient stock.
Improvements
Added grayscale styling for out-of-stock child items
Out-of-stock child items now display with a grayscale effect to visually indicate their availability.
Improved quantity input alignment for Twenty Twenty-Four theme
Added styling adjustments to improve quantity input alignment when using the Twenty Twenty-Four theme.
Why this matters
- Prevents PHP 8.2 deprecation warnings
- Improves compatibility with Mix and Match mini-extensions
- Ensures stock status is clearly visible when containers are low on stock
- Provides clearer visual indication of out-of-stock items
- Improves layout compatibility with modern WordPress themes