WC_Product::set_cross_sell_ids( array $cross_sell_ids )

Set crosssell IDs.


Description Description


Parameters Parameters

$cross_sell_ids

(array) (Required) IDs from the cross-sell products.


Top ↑

Source Source

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

	public function set_cross_sell_ids( $cross_sell_ids ) {
		$this->set_prop( 'cross_sell_ids', array_filter( (array) $cross_sell_ids ) );
	}

Top ↑

Changelog 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.