LLMS_Product::get_restrictions()
Retrieve a list of restrictions on the product
Description Description
Restrictions are used to in conjunction with "is_purchasable()" to determine if purchase/enrollment should be allowed for a given product.
Restrictions in the core currently only exist on courses:
- Enrollment time period
- Student capacity
Return Return
(string[]) An array of strings describing the restrictions placed on the product.
Source Source
File: includes/models/model.llms.product.php
Changelog Changelog
Version | Description |
---|---|
3.38.0 | Introduced. |