WordPress at Your Fingertips
function is not described

WC_Product_CSV_Exporter::get_column_value_low_stock_amount() protected WC 3.5.0

Get low stock amount value.

{} It's a 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.

Code of WC_Product_CSV_Exporter::get_column_value_low_stock_amount() WC 5.9.0

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' ) : '';
}