Learndash_Product_Model
Product model class.
Description #
Source #
Changelog #
Version | Description |
---|---|
4.5.0 | Introduced. |
Methods #
- enroll — Adds access for a user.
- get_allowed_post_types — Returns allowed post types.
- get_pricing — Returns a pricing DTO.
- get_pricing_settings — Returns formatted post pricing data.
- get_pricing_type — Returns a product type (buy now, subscription, free, open, closed, etc).
- get_type_label — Returns a product type label. Usually "Course" or "Group".
- unenroll — Removes access for a user.
- user_has_access — Returns true if a user has access to this product, false otherwise.