WC_Product_CSV_Exporter::get_column_value_download_expiry
Get download_expiry value.
Method of the class: WC_Product_CSV_Exporter{}
No Hooks.
Returns
String.
Usage
// protected - for code of main (parent) or child class $result = $this->get_column_value_download_expiry( $product );
- $product(WC_Product) (required)
- Product being exported.
Changelog
| Since 3.1.0 | Introduced. |
WC_Product_CSV_Exporter::get_column_value_download_expiry() WC Product CSV Exporter::get column value download expiry code WC 10.5.0
protected function get_column_value_download_expiry( $product ) {
return $product->is_downloadable() && $product->get_download_expiry( 'edit' ) ? $product->get_download_expiry( 'edit' ) : '';
}