You appear to be a bot. Output may be restricted
Description
Checks whether current site has product subscription of a given ID.
Usage
$bool = WC_Helper::has_product_subscription( $product_id );
Parameters
- $product_id
- ( int ) required – The product id.
Returns
bool Returns true if product subscription exists, false otherwise.
Source
File name: woocommerce/includes/admin/helper/class-wc-helper.php
Lines:
1 to 4 of 4
public static function has_product_subscription( $product_id ) { $subscription = self::_get_subscriptions_from_product_id( $product_id, true ); return ! empty( $subscription ); }