WordPress at Your Fingertips
function is not described

WC_Product::has_options() public WC 3.0.0

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

{} It's a method of the class: WC_Product{}

Hooks from the method

Return

true|false.

Usage

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

Changelog

Since 3.0.0 Introduced.

Code of WC_Product::has_options() WC 5.8.0

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