LLMS_Membership
LLMS_Membership model class
Description Description
Source Source
File: includes/models/model.llms.membership.php
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Added MySQL 8.0 compatibility. |
3.38.1 | Added methods for retrieving posts associated with the membership. |
3.36.3 | Added get_categories() , get_tags() and toArrayAfter() methods. |
3.32.0 | Added get_student_count() method. |
3.30.0 | Added optional argument to add_auto_enroll_courses() method. |
3.0.0 | Introduced. |
Methods Methods
- add_auto_enroll_courses — Add courses to autoenrollment by id
- get_associated_posts — Retrieve a list of posts associated with the membership
- get_auto_enroll_courses — Get an array of the auto enrollment course ids
- get_categories — Retrieve membership categories.
- get_instructors — Retrieve course instructor information
- get_product — Retrieve an instance of the LLMS_Product for this course
- get_sales_page_url — Get the URL to a WP Page or Custom URL when sales page redirection is enabled
- get_student_count — Retrieve the number of enrolled students in the membership.
- get_students — Get an array of student IDs based on enrollment status in the membership
- get_tags — Retrieve membership tags.
- has_sales_page_redirect — Determine if sales page redirection is enabled
- instructors — Retrieve an instance of the Post Instructors model
- query_associated_courses — Retrieve courses associated with the membership
- query_associated_posts — Performs a WPDB query to retrieve posts associated with the membership
- remove_auto_enroll_course — Remove a course from auto enrollment
- set_instructors — Save instructor information
- toArrayAfter — Add data to the membership model when converted to array.