Use get_upsell_ids

This commit is contained in:
Mike Jolley 2016-10-18 19:08:40 +01:00
parent 3e6bee0712
commit bf78e8bcd4
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ if ( empty( $product ) || ! $product->exists() ) {
return; 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; return;
} }