Use get_upsell_ids
This commit is contained in:
parent
560513cde7
commit
95de56d402
|
@ -26,7 +26,7 @@ if ( empty( $product ) || ! $product->exists() ) {
|
|||
return;
|
||||
}
|
||||
|
||||
if ( ! $related = wc_get_related_products( $product->get_id(), $posts_per_page, $product->get_upsells() ) ) {
|
||||
if ( ! $related = wc_get_related_products( $product->get_id(), $posts_per_page, $product->get_upsell_ids() ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue