/** * Returns true if the price calculator is enabled for the given product * * @since 3.0 * @param WC_Product $product the product * @return boolean true if the price calculator is enabled */ public static function pricing_calculator_enabled($product) { if (self::calculator_enabled($product)) { // see whether a calculator is configured for this product $settings = new WC_Price_Calculator_Settings($product); return $settings->is_pricing_calculator_enabled(); } return false; }