WC_Product_CSV_Exporter::get_column_value_type()
Get type 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_type( $product );
- $product(WC_Product) (required)
- Product being exported.
Changelog
Since 3.1.0 | Introduced. |
WC_Product_CSV_Exporter::get_column_value_type() WC Product CSV Exporter::get column value type code WC 9.4.2
protected function get_column_value_type( $product ) { $types = array(); $types[] = $product->get_type(); if ( $product->is_downloadable() ) { $types[] = 'downloadable'; } if ( $product->is_virtual() ) { $types[] = 'virtual'; } return $this->implode_values( $types ); }