diff --git a/includes/abstracts/abstract-wc-product.php b/includes/abstracts/abstract-wc-product.php index f45d1449ebb..ccecf15e367 100644 --- a/includes/abstracts/abstract-wc-product.php +++ b/includes/abstracts/abstract-wc-product.php @@ -1738,7 +1738,7 @@ class WC_Product extends WC_Abstract_Legacy_Product { * @return boolean */ public function has_options() { - return false; + return apply_filters( 'woocommerce_product_has_options', false, $this ); } /* diff --git a/includes/class-wc-product-variable.php b/includes/class-wc-product-variable.php index a141c110eb2..78900dd9fc1 100644 --- a/includes/class-wc-product-variable.php +++ b/includes/class-wc-product-variable.php @@ -590,7 +590,7 @@ class WC_Product_Variable extends WC_Product { * @return boolean */ public function has_options() { - return true; + return apply_filters( 'woocommerce_product_has_options', true, $this ); }