Use get_upsell_ids

This commit is contained in:
Mike Jolley 2016-10-18 19:08:40 +01:00
parent 560513cde7
commit 95de56d402
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}