LLMS_Coupon::applies_to_product( int $product_id )
Determine if a coupon can be applied to a specific product
Description Description
Parameters Parameters
- $product_id
-
(Required) WP Post ID of a LLMS Course or Membership
Return Return
(boolean) true if it can be applied, false otherwise
Source Source
File: includes/models/model.llms.coupon.php
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |