WordPress at Your Fingertips
function is not described

WC_Product::is_in_stock() public WC 1.0

Returns whether or not the product can be purchased. This returns true for 'instock' and 'onbackorder' stock statuses.

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

Hooks from the method
Return

true|false.

Usage

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

Code of WC_Product::is_in_stock() WC 5.5.2

<?php
public function is_in_stock() {
	return apply_filters( 'woocommerce_product_is_in_stock', 'outofstock' !== $this->get_stock_status(), $this );
}