* @since 1.0 * @deprecated 1.5.18 */ public static function get_price_html($price, $product) { _deprecated_function(__METHOD__, '1.5.18', __CLASS__ . '::get_price_string()'); if (self::is_subscription($product)) { $price = self::get_price_string($product, array('price' => $price)); } return $price; } /** * Deprecated in favour of native get_price_html() method on the Subscription Product classes (e.g. WC_Product_Subscription) * * Set the subscription string for products which have a $0 recurring fee, but a sign-up fee * * @since 1.3.4 * @deprecated 1.5.18 */ public static function get_free_price_html($price, $product) { _deprecated_function(__METHOD__, '1.5.18', __CLASS__ . '::get_price_string()'); // Check if it has a sign-up fee (we already know it has no recurring fee) if (self::is_subscription($product) && self::get_sign_up_fee($product) > 0) { $price = self::get_price_string($product, array('price' => $price)); } return $price; } } WC_Subscriptions_Product::init();