Add woocommerce_product_has_options filter

This commit is contained in:
Kathy Daring 2020-08-28 12:01:11 -06:00
parent a88cb8ab8e
commit 0db54ecec3
2 changed files with 2 additions and 2 deletions

View File

@ -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 );
}
/*

View File

@ -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 );
}
/**