WC_Product::get_upsell_ids()
Get upsell IDs.
Method of the class: WC_Product{}
No Hooks.
Return
Array
.
Usage
$WC_Product = new WC_Product(); $WC_Product->get_upsell_ids( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default: 'view'
Changelog
Since 3.0.0 | Introduced. |
WC_Product::get_upsell_ids() WC Product::get upsell ids code WC 9.3.3
public function get_upsell_ids( $context = 'view' ) { return $this->get_prop( 'upsell_ids', $context ); }