lifterlms_template_student_dashboard_my_memberships( bool $preview = false )
Template for My Memberships section on dashboard index
Parameters Parameters
- $preview
-
(bool) (Optional) If true, outputs a short list of courses (based on dashboard_recent_courses filter). Default
false
.Default value: false
Return Return
(void)
Source Source
File: includes/functions/llms.functions.templates.dashboard.php
'skip' => $per_page * ( $page - 1 ), 'orderby' => $parts[0], 'order' => strtoupper( $parts[1] ), ) ); add_filter( 'paginate_links', 'llms_modify_dashboard_pagination_links' ); llms_get_template( 'myaccount/my-grades.php', array( 'courses' => array_map( 'llms_get_post', $courses['results'] ), 'student' => $student, 'sort' => $sort, 'pagination' => array( 'current' => absint( $page ), 'max' => absint( ceil( $courses['found'] / $per_page ) ), ), ) ); remove_filter( 'paginate_links', 'llms_modify_dashboard_pagination_links' ); // Show single. } else { $course = get_posts( array( 'name' => $slug, 'post_type' => 'course', ) );
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.19.0 | Unknown. |
3.14.0 | Introduced. |