WC_Product_CSV_Exporter::get_column_value_upsell_ids()
Get upsell_ids 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_upsell_ids( $product );
- $product(WC_Product) (required)
- Product being exported.
Changelog
Since 3.1.0 | Introduced. |
WC_Product_CSV_Exporter::get_column_value_upsell_ids() WC Product CSV Exporter::get column value upsell ids code WC 9.4.2
protected function get_column_value_upsell_ids( $product ) { return $this->prepare_linked_products_for_export( array_filter( array_map( 'wc_get_product', (array) $product->get_upsell_ids( 'edit' ) ) ) ); }