Use instance of checks for detecting WCProduct

[MAILPOET-2586]
This commit is contained in:
Rostislav Wolny
2019-12-19 13:27:44 +01:00
committed by Jack Kitterhing
parent 73e9cc3517
commit d3ce76f88d
6 changed files with 21 additions and 5 deletions

View File

@@ -231,6 +231,10 @@ if (!function_exists('WC')) {
function WC() {
return new WooCommerce;
}
class WC_Order_Item_Product { // phpcs:ignore
function get_product_id() { // phpcs:ignore
}
}
}
include '_fixtures.php';