LLMS_Product::is_purchasable()
Determine if the product is purchasable
Description Description
At least one gateway must be enabled and at least one access plan must exist. If the product is a course, additionally checks to ensure course enrollment is open and has capacity.
Return Return
(bool)
Source Source
File: includes/models/model.llms.product.php
Changelog Changelog
Version | Description |
---|---|
3.38.0 | Use has_restrictions() to determine if the product has additional restrictions. |
3.25.2 | Unknown. |
3.0.0 | Introduced. |