WC_Product_Variable::has_options()
Returns whether or not the product has additional options that need selecting before adding to cart.
Метод класса: WC_Product_Variable{}
Хуки из метода
Возвращает
true|false
.
Использование
$WC_Product_Variable = new WC_Product_Variable(); $WC_Product_Variable->has_options();
Список изменений
С версии 3.0.0 | Введена. |
Код WC_Product_Variable::has_options() WC Product Variable::has options WC 9.8.1
public function has_options() { return apply_filters( 'woocommerce_product_has_options', true, $this ); }