WC_Product::set_upsell_ids( array $upsell_ids )

Set upsell IDs.

Description Description

Parameters Parameters


(Required) IDs from the up-sell products.

Top ↑

Source Source

File: includes/abstracts/abstract-wc-product.php

	public function set_upsell_ids( $upsell_ids ) {
		$this->set_prop( 'upsell_ids', array_filter( (array) $upsell_ids ) );

Top ↑

Changelog Changelog

Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.