WC_Product::has_options()publicWC 3.0.0

Returns whether or not the product has additional options that need selecting before adding to cart.

Метод класса: WC_Product{}

Хуки из метода

Возвращает

true|false.

Использование

$WC_Product = new WC_Product();
$WC_Product->has_options();

Список изменений

С версии 3.0.0 Введена.

Код WC_Product::has_options() WC 8.7.0

public function has_options() {
	return apply_filters( 'woocommerce_product_has_options', false, $this );
}