Schedule installation #49

Merged
bilal.catic merged 21 commits from schedule-installation-new into master 2018-11-03 11:24:43 +01:00
Showing only changes of commit c08c393b2d - Show all commits

View File

@@ -72,7 +72,7 @@ class Wiaas_Product {
}
public static function get_supplier_id($product_id){
return get_field('supplier', $product_id) ?: NULL;
return wp_get_post_terms($product_id, 'supplier', array('fields' => 'ids'))[0];
}
}