Add woocommerce_product_has_options filter
This commit is contained in:
parent
a88cb8ab8e
commit
0db54ecec3
|
@ -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 );
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue