WC_Product_CSV_Exporter::get_column_value_download_limit()protectedWC 3.1.0

Get download_limit value.

Method of the class: WC_Product_CSV_Exporter{}

No Hooks.

Return

String.

Usage

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

Changelog

Since 3.1.0 Introduced.

WC_Product_CSV_Exporter::get_column_value_download_limit() code WC 8.7.0

protected function get_column_value_download_limit( $product ) {
	return $product->is_downloadable() && $product->get_download_limit( 'edit' ) ? $product->get_download_limit( 'edit' ) : '';
}