WC_Product::managing_stock
Returns whether or not the product is stock managed.
Method of the class: WC_Product{}
No Hooks.
Returns
true|false.
Usage
$WC_Product = new WC_Product(); $WC_Product->managing_stock();
WC_Product::managing_stock() WC Product::managing stock code WC 10.7.0
public function managing_stock() {
if ( 'yes' === get_option( 'woocommerce_manage_stock' ) ) {
return $this->get_manage_stock();
}
return false;
}