LLMS_Template_Loader
Template loader class.
Description Description
Source Source
File: includes/class.llms.template.loader.php
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Don't pass objects by reference because it's unnecessary. |
3.41.1 | Fixed content membership restricted post's content not restricted in REST requests. |
3.37.2 | Notices are printed on sales pages too. |
3.37.10 | Notices are printed on pages configured as a membership restriction redirect page. |
3.20.0 | Unknown. |
1.0.0 | Introduced. |
Methods Methods
- __construct — Constructor
- handle_restriction — Add a notice and/or redirect during restriction actions
- maybe_prepare_post_content_restriction — Maybe restrict the post content in REST requets
- maybe_print_notices_on_sales_page_redirect — Maybe print notices after redirection.
- maybe_redirect_to_sales_page — Handle sales page redirects for courses & memberships
- maybe_restrict_post_content — Maybe restrict the post content in the REST loop
- restricted_by_course_prerequisite — Handle redirects and messages when a user attempts to access an item restricted by a course prerequisite.
- restricted_by_course_time_period — Handle redirects and messages when a course or associated quiz or lesson has time period date restrictions placed upon it.
- restricted_by_course_track_prerequisite — Handle redirects and messages when a user attempts to access an item restricted by a course track prerequisite.
- restricted_by_enrollment_lesson — Handle redirects and messages when a user attempts to access a lesson for a course they're not enrolled in.
- restricted_by_lesson_drip — Handle redirects and messages when a user attempts to access a lesson for that is restricted by lesson drip settings.
- restricted_by_lesson_prerequisite — Handle redirects and messages when a user attempts to access a lesson for that is restricted by prerequisite lesson.
- restricted_by_membership — Handle content restricted to a membership.
- restricted_by_quiz — Handle attempts to access quizzes.
- restricted_by_sitewide_membership — Handle content restricted to a membership
- template_loader — Check if content should be restricted and include overrides where appropriate