WC_Product_CSV_Exporter::get_column_value_low_stock_amount()protectedWC 3.5.0

Get low stock amount value.

Method of the class: WC_Product_CSV_Exporter{}

No Hooks.

Return

Int|String. Empty string if value not set

Usage

// protected - for code of main (parent) or child class
$result = $this->get_column_value_low_stock_amount( $product );
$product(WC_Product) (required)
Product being exported.

Changelog

Since 3.5.0 Introduced.

WC_Product_CSV_Exporter::get_column_value_low_stock_amount() code WC 9.4.2

protected function get_column_value_low_stock_amount( $product ) {
	return $product->managing_stock() && $product->get_low_stock_amount( 'edit' ) ? $product->get_low_stock_amount( 'edit' ) : '';
}