WordPress at Your Fingertips
function is not described

WC_Product_Variable_Data_Store_CPT::child_is_in_stock() public WC 3.0.0

Is a child in stock?

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

No Hooks.

Return

true|false.

Usage

$WC_Product_Variable_Data_Store_CPT = new WC_Product_Variable_Data_Store_CPT();
$WC_Product_Variable_Data_Store_CPT->child_is_in_stock( $product );
$product(WC_Product) (required)
Product object.

Changelog

Since 3.0.0 Introduced.

Code of WC_Product_Variable_Data_Store_CPT::child_is_in_stock() WC 5.7.1

public function child_is_in_stock( $product ) {
	return $this->child_has_stock_status( $product, 'instock' );
}