SFWD_CPT_Instance::template_content( string $content )
Generate output for courses, lessons, topics, quizzes Filter callback for ‘the_content’ (wp core filter)
Description #
Determines what the user is currently looking at, sets up data, passes to template, and returns output.
Parameters #
- $content
-
(string) (Required) content of post.
Return #
(string) $content content of post
Source #
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |
Related #
@package #
Uses #
Uses | Description |
---|---|
src/Core/Template/Views/Course.php: Course::__construct () |
Constructor. |
src/Core/Template/Views/Topic.php: Topic::__construct () |
Constructor. |
src/Core/Template/Views/Exam.php: Exam::__construct () |
Constructor. |
src/Core/Template/Views/Lesson.php: Lesson::__construct () |
Constructor. |
src/Core/Template/Views/Group.php: Group::__construct () |
Constructor. |
includes/course/ld-activity-functions.php: learndash_activity_update_meta_set () |
Update activity meta set. |
includes/course/ld-activity-functions.php: learndash_activity_start_lesson () |
Set the lesson activity started record. |
includes/course/ld-activity-functions.php: learndash_activity_start_topic () |
Set the topic activity started record. |
includes/course/ld-activity-functions.php: learndash_activity_start_course () |
Set the course activity started record. |
includes/course/ld-course-progress.php: learndash_prerequities_bypass |
Bypass prerequisites. |
includes/classes/class-ldlms-model-user-course-progress.php: learndash_user_progress_is_step_complete () |
Utility function to get check if the course step is complete. |
includes/classes/class-ldlms-model-user-course-progress.php: learndash_user_progress_get_previous_incomplete_step () |
Utility function to get the previous incomplete course step for user. |
includes/ld-certificates.php: learndash_get_group_certificate_link () |
Get Group certificate link for user |
includes/class-ld-cpt-instance.php: learndash_template_preprocess_filter |
Filter called just before template processing. Allows late determination if LearnDash template logic should be processed. |
includes/course/ld-course-functions.php: learndash_can_user_bypass () |
Check if user can bypass action ($context). |
includes/course/ld-course-functions.php: learndash_is_course_prerequities_completed () |
Checks if the user’s course prerequisites are completed for a given course. |
includes/ld-misc-functions.php: learndash_ob_get_clean () |
Helper function for PHP output buffering. |
includes/settings/settings-functions.php: learndash_get_setting () |
Gets the LearnDash setting for a post. |
includes/ld-misc-functions.php: learndash_get_option () |
Gets the options for a particular post type and setting. |
includes/ld-misc-functions.php: learndash_is_sample () |
Checks if a lesson, topic, or quiz is a sample or not. |
includes/ld-certificates.php: learndash_get_course_certificate_link () |
Gets the course certificate link for the user. |
includes/class-ld-custom-label.php: learndash_get_custom_label_lower () |
Utility function to get a custom field label lowercase. |
includes/class-ld-lms.php: SFWD_LMS::get_template () |
Get LearnDash template and pass data to be used in template |
includes/ld-users.php: learndash_get_user_course_points () |
Gets the course points for a user. |
includes/class-ldlms-post-types.php: learndash_get_post_types () | |
includes/class-ldlms-post-types.php: learndash_get_post_type_slug () | |
includes/class-ld-cpt-instance.php: SFWD_CPT_Instance::get_archive_content () |
Get Archive content |
includes/class-ld-cpt-instance.php: learndash_remove_template_content_filter |
Remove the hook into the WP ‘the_content’ filter once we are in our handler. This will allow other templates to call the ‘the_content’ filter without causing recursion. |
includes/shortcodes/ld_quiz.php: learndash_previous_step_completed | |
includes/class-ld-cpt-instance.php: learndash_content |
Filter content to be return inside div |
includes/course/ld-course-functions.php: learndash_process_lesson_topics_pager () |
Processes the lesson topics pagination. |
includes/course/ld-course-functions.php: learndash_check_user_course_points_access () |
Checks if a user can access course points. |
includes/course/ld-course-functions.php: learndash_get_course_points_access () |
Gets the course points access for a given course ID. |
includes/course/ld-course-functions.php: learndash_get_course_prerequisites () |
Gets the list of course prerequisites and its status for a course. |
includes/course/ld-course-functions.php: learndash_get_course_id () |
Gets the course ID for a resource. |
includes/course/ld-course-navigation.php: learndash_get_course_lessons_list () |
Gets the lesson list output for a course. |
includes/course/ld-course-navigation.php: learndash_get_course_quiz_list () |
Gets the quiz list output for a course. |
includes/course/ld-course-navigation.php: learndash_get_lesson_quiz_list () |
Gets the quiz list output for a lesson/topic. |
includes/course/ld-course-navigation.php: learndash_topic_dots () |
Outputs the LearnDash topic dots. |
includes/course/ld-course-progress.php: learndash_lesson_progression_enabled () |
Checks whether the lesson progression is enabled or not. |
includes/course/ld-course-progress.php: learndash_course_status () |
Outputs the current status of the course. |
includes/course/ld-course-progress.php: learndash_is_quiz_notcomplete () |
Checks whether a quiz is not completed for a user. |
includes/shortcodes/ld_quiz.php: learndash_quiz_shortcode () |
Legacy function used when not calling the WordPress shortcode API. |
includes/course/ld-course-video.php: Learndash_Course_Video::get_instance () |
Get instance. |