WC_Product_CSV_Exporter::get_column_value_type
Get type value.
Метод класса: WC_Product_CSV_Exporter{}
Хуков нет.
Возвращает
Строку.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_column_value_type( $product );
- $product(WC_Product) (обязательный)
- Product being exported.
Список изменений
| С версии 3.1.0 | Введена. |
Код WC_Product_CSV_Exporter::get_column_value_type() WC Product CSV Exporter::get column value type WC 10.4.0
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 );
}