SFWD_LMS::get_course_info( int $user_id, array $atts = array() )
Returns output of users course information for bottom of profile
Description #
Parameters #
- $user_id
-
(int) (Required) user id.
- $atts
-
(array) (Optional) Attributes.
Default value: array()
Return #
(string|array) Output of course information
Source #
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |
Related #
@package #
Uses #
Uses | Description |
---|---|
includes/shortcodes/shortcodes-functions.php: learndash_shortcode_can_current_user_access_post () |
Checks if the current user can access the post. |
src/Core/Utilities/Cast.php: Cast::to_int () |
Casts a value to a int if possible or returns an empty string. |
includes/class-ld-lms.php: learndash_user_courseinfo_courses_include_expired |
Filters expired courses from course info query |
includes/ld-users.php: learndash_get_expired_user_courses_from_meta () |
Gets all expired courses for the user via the user meta ‘learndash_course_expired_XXX’. |
includes/class-ld-lms.php: SFWD_LMS::get_template () |
Get LearnDash template and pass data to be used in template |
includes/class-ld-lms.php: learndash_ld_course_list_shortcode_defaults |
Filters course list shortcode attribute defaults. |
includes/class-ld-lms.php: learndash_course_info_per_page |
Filters value of course information per page. |
includes/class-ld-lms.php: learndash_course_info_paged |
Filters paged query argument for course info. |
includes/class-ld-lms.php: learndash_course_info_query_args |
Filters query arguments for courses registered. |
includes/class-ld-lms.php: learndash_quiz_info_per_page |
Filters value of quiz information per page. |
includes/class-ld-lms.php: learndash_quiz_info_paged |
Filters paged query argument for quiz info. |
includes/settings/class-ld-settings-sections.php: LearnDash_Settings_Section::get_section_setting () |
Static function to get a Section Setting value. |
Used By #
Used By | Description |
---|---|
includes/course/ld-course-info-widget.php: learndash_ajax_course_registered_pager () |
Handles the AJAX pagination for the courses registered. |
includes/course/ld-course-info-widget.php: learndash_ajax_course_progress_pager () |
Handles the AJAX pagination for the course progress. |
includes/course/ld-course-info-widget.php: learndash_ajax_quiz_progress_pager () |
Handles the AJAX pagination for the quiz progress. |
includes/rest-api/v2/class-ld-rest-users-quiz-progress-controller.php: LD_REST_Users_Quiz_Progress_Controller_V2::get_items () |
Get user course progress. |
includes/widgets/ld_user_status.php: LearnDash_User_Status_Widget::widget () |
Displays widget |
themes/ld30/includes/helpers.php: learndash_30_ajax_pager () |
Gets the ld30 theme ajax pagination. |
includes/shortcodes/learndash_user_status.php: learndash_user_status_shortcode () |
Builds the |
includes/rest-api/v1/class-ld-rest-users-quiz-attempts-controller.php: LD_REST_Users_Quiz_Attempts_Controller_V1::get_quiz_attempts () |
Get Quiz Attempts. |
includes/course/ld-course-info-widget.php: learndash_course_info () |
Gets the course info HTML output for user. |
includes/shortcodes/ld_course_info.php: learndash_course_info_shortcode () |
Builds the |
includes/admin/class-learndash-admin-user-profile-edit.php: Learndash_Admin_User_Profile_Edit::show_user_course_info () |
Displays users course information at bottom of profile called by show_user_profile(). |