Fix the plugin
-
Can you fix this error?
The Automattic\WooCommerce\Admin\API\Reports\Products\Query::get_data function is deprecated since version 9.3.0. Replace withGenericQuery,\WC_Object_Query, or directDataStoreuse.It is generated by /class/class-mainwp-child-woocommerce-status.php, line 389. The solution involves replacing this:
$report = new \Automattic\WooCommerce\Admin\API\Reports\Products\Query( $args ); $product_data = $report->get_data();With something along the lines of this:
use Automattic\WooCommerce\Admin\API\Reports\Products\DataStore;
$data_store = new DataStore();
$product_data = $data_store->get_data( $args );Thank you!
Best regards.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Fix the plugin’ is closed to new replies.