WordPress at Your Fingertips
function is not described

WC_Product::set_manage_stock() public WC 3.0.0

Set if product manage stock.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Product = new WC_Product();
$WC_Product->set_manage_stock( $manage_stock );
$manage_stock(true|false) (required)
Whether or not manage stock is enabled.

Changelog

Since 3.0.0 Introduced.

Code of WC_Product::set_manage_stock() WC 5.5.2

<?php
public function set_manage_stock( $manage_stock ) {
	$this->set_prop( 'manage_stock', wc_string_to_bool( $manage_stock ) );
}