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.


Top ↑

Source Source

File: includes/models/model.llms.product.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.38.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.