Woowallet use of outdated woocommerce query since 9.2.0
-
Since updating Woo, receiving a wp debug errror on Woowallet. This is a notice related to WooCommerce’s WC_Order_Data_Store_CPT::query function, which is part of WooCommerce’s order data store. This specific notice highlights that the meta_query argument is not supported for the current order data store (CPT). WooCommerce introduced this change in version 9.2.0, so it’s indicating an incorrect usage of the meta_query in your code or plugin.
Here’s a breakdown of what’s happening:
Woo_Wallet_Admin plugin: The issue seems to arise from a call in the Woo Wallet plugin (Woo_Wallet_Admin->add_wallet_topup_report). It is attempting to query WooCommerce orders using a meta_query that WooCommerce no longer supports in its WC_Order_Data_Store_CPT class as of WooCommerce 9.2.0.
WooCommerce Query: The plugin is trying to retrieve order data using the meta_query parameter, but this is not valid in the context of the order query mechanism for custom post types (CPT) after WooCommerce’s recent updates.
This meta_query argument needs to be removed or handled differently (perhaps using custom fields instead).
Can someone please review and patch in next update?
- You must be logged in to reply to this topic.