LLMS_Product
LLMS_Product model class
Description Description
Both Courses and Memberships are sellable and can be instantiated as a product.
Source Source
File: includes/models/model.llms.product.php
Changelog Changelog
Version | Description |
---|---|
3.38.0 | Add get_restrictions() and has_restrictions() methods. |
3.37.17 | Fixed a typo in the post_status query arg when retrieving access plans for this product. Use in_array with strict comparison where possible. |
3.25.2 | Unknown. |
1.0.0 | Introduced. |
Methods Methods
- get_access_plan_limit — Retrieve the max number of access plans that can be created for this product
- get_access_plans — Get all access plans for the product
- get_catalog_visibility — Retrieve the product's catalog visibility term
- get_catalog_visibility_name — Retrieve the product's catalog visibility name for display
- get_pricing_table_columns_count — Get the number of columns for the pricing table
- get_restrictions — Retrieve a list of restrictions on the product
- has_free_access_plan — Determine if the product has at least one free access plan
- has_restrictions — Determine if any restrictions exist on the product.
- is_purchasable — Determine if the product is purchasable
- set_catalog_visibility — Update the product's catalog visibility setting