WC_Product_CSV_Exporter::get_column_value_type() – Get type value.

You appear to be a bot. Output may be restricted

Description

Get type value.

Usage

$string = WC_Product_CSV_Exporter::get_column_value_type( $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 14 of 14
  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 );
  }
 

 View on GitHub View on Trac