WC_Product::managing_stock()
Returns whether or not the product is stock managed.
Description Description
Return Return
(bool)
Source Source
File: includes/abstracts/abstract-wc-product.php
public function managing_stock() {
if ( 'yes' === get_option( 'woocommerce_manage_stock' ) ) {
return $this->get_manage_stock();
}
return false;
}