This class has been deprecated.
Learndash_Product_Model
Product model class.
Description #
Source #
Changelog #
Version | Description |
---|---|
4.6.0 | This class has been deprecated. |
4.5.0 | Introduced. This class has been deprecated. |
Methods #
- clear_attributes — Removes all attributes. — deprecated
- enroll — Adds access for a user.
- get_allowed_post_types — Returns allowed post types.
- get_attribute — Returns an attribute value or null if not found. — deprecated
- get_attributes — Returns all attributes. — deprecated
- 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".
- has_attribute — Returns true if an attribute exists. Otherwise, false. — deprecated
- remove_attribute — Removes an attribute. — deprecated
- set_attribute — Returns an attribute value or null if not found. — deprecated
- set_attributes — Sets multiple attributes. — deprecated
- unenroll — Removes access for a user.
- user_has_access — Returns true if a user has access to this product, false otherwise.