/** * Filters result of get_price() **/ function woo_bundles_get_price($price, $product) { if ($product->is_type('bundle') && !isset($product->bundled_item_ids)) { $product = new WC_Product_Bundle($product->id); return $product->get_price(); } return $price; }