WC_Product_CSV_Exporter::get_column_value_download_limit() – Get download_limit value.

You appear to be a bot. Output may be restricted

Description

Get download_limit value.

Usage

$string = WC_Product_CSV_Exporter::get_column_value_download_limit( $product );

Parameters

$product
( WC_Product ) required – Product being exported.

Returns

string

Source

File name: woocommerce/includes/export/class-wc-product-csv-exporter.php
Lines:

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

 View on GitHub View on Trac