WordPress at Your Fingertips
function is not described

WC_Product_CSV_Exporter::get_column_value_cross_sell_ids() protected WC 3.1.0

Get cross_sell_ids value.

{} It's a 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_cross_sell_ids( $product );
$product(WC_Product) (required)
Product being exported.

Changelog

Since 3.1.0 Introduced.

Code of WC_Product_CSV_Exporter::get_column_value_cross_sell_ids() WC 5.9.0

protected function get_column_value_cross_sell_ids( $product ) {
	return $this->prepare_linked_products_for_export( array_filter( array_map( 'wc_get_product', (array) $product->get_cross_sell_ids( 'edit' ) ) ) );
}