WC_Product_CSV_Exporter::get_column_value_type()protectedWC 3.1.0

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 8.7.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 );
}