WC_Product::get_cross_sell_ids
Get cross sell IDs.
Method of the class: WC_Product{}
No Hooks.
Returns
Array.
Usage
$WC_Product = new WC_Product(); $WC_Product->get_cross_sell_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_cross_sell_ids() WC Product::get cross sell ids code WC 10.5.0
public function get_cross_sell_ids( $context = 'view' ) {
return $this->get_prop( 'cross_sell_ids', $context );
}