learndash_group_enrolled_courses( int $group_id, boolean $bypass_transient = false )
Gets the list of enrolled courses for a group.
Description #
Parameters #
- $group_id
-
(int) (Optional) Group ID. Default 0.
- $bypass_transient
-
(boolean) (Optional) Whether to bypass transient cache or not.
Default value: false
Return #
(array) An array of course IDs.
Source #
File: includes/ld-groups.php
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |
Related #
Namespace #
@package #
Uses #
Uses | Description |
---|---|
includes/class-ldlms-post-types.php: learndash_get_post_type_slug () |
Used By #
Used By | Description |
---|---|
includes/rest-api/v2/class-ld-rest-users-course-progress-controller.php: LD_REST_Users_Course_Progress_Controller_V2::get_request_courses () |
Common function to get the displayable Courses. |
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/rest-api/v2/class-ld-rest-essays-controller.php: LD_REST_Essays_Controller_V2::rest_query_filter () |
Filter essays query args. |
includes/rest-api/v2/class-ld-rest-assignments-controller.php: LD_REST_Assignments_Controller_V2::rest_query_filter () |
Filter Assignments query args. |
includes/rest-api/v2/class-ld-rest-groups-courses-controller.php: LD_REST_Groups_Courses_Controller_V2::rest_query_filter () |
Filter Groups Courses query args. |
includes/admin/class-learndash-admin-posts-listing.php: Learndash_Admin_Posts_Listing::selector_filter_for_course () |
Course Selector Filter. |
includes/admin/class-learndash-admin-posts-listing.php: Learndash_Admin_Posts_Listing::listing_filter_by_group () |
Filter the main query listing by the group_id |
includes/admin/classes-posts-listings/class-learndash-admin-groups-listing.php: Learndash_Admin_Groups_Listing::show_column_course_users () |
Show Group Course Users column. |
includes/admin/classes-posts-listings/class-learndash-admin-users-listing.php: Learndash_Admin_Users_Listing::listing_filter_by_user_course () |
Filter the main query listing by the course_id |
includes/admin/classes-posts-listings/class-learndash-admin-users-listing.php: Learndash_Admin_Users_Listing::selector_filter_for_user_course () |
Course Selector Filter. |
includes/ld-groups.php: learndash_get_user_group_progress () |
Check and recalculate the the status of the Group Courses for the User. |
includes/ld-groups.php: learndash_get_groups_administrators_courses () |
Get all Courses within all Groups managed by the Group Leader. |
includes/shortcodes/ld_groupinfo.php: learndash_groupinfo_shortcode () |
Builds the |
includes/settings/settings-metaboxes/class-ld-settings-metabox-group-courses.php: LearnDash_Settings_Metabox_Group_Courses_Settings::show_settings_metabox_fields () |
Show Settings Section Fields. |
includes/settings/settings-metaboxes/class-ld-settings-metabox-group-courses-enroll.php: LearnDash_Settings_Metabox_Group_Courses_Enroll_Settings::show_settings_metabox_fields () |
Show Settings Section Fields. |
includes/class-ld-lms.php: SFWD_LMS::get_course_info () |
Returns output of users course information for bottom of profile |
includes/class-ld-lms.php: SFWD_LMS::course_progress_data () |
Course progress data |
includes/ld-groups.php: learndash_get_group_course_quiz_ids () |
Gets all quizzes related to Group Courses. |
includes/ld-groups.php: learndash_set_group_enrolled_courses () |
Sets the list of enrolled courses for a group. |
includes/ld-groups.php: learndash_get_groups_courses_ids () |
Groups all the related course ids for a set of groups IDs. |
includes/ld-users.php: learndash_get_user_groups_courses_ids () |
Gets all courses accessible by the user’s groups. |
includes/ld-reports.php: learndash_get_group_leader_groups_courses () |
Gets the list or count of group courses for a group leader. |
includes/ld-reports.php: learndash_get_assignments_pending_count () |
Gets the count of pending sfwd-assignment posts. |
includes/ld-reports.php: learndash_get_essays_pending_count () |
Gets the count of pending Essays(sfwd-essays) posts. |
includes/rest-api/v1/class-ld-rest-groups-courses-controller.php: LD_REST_Groups_Courses_Controller_V1::get_groups_courses () |
Get Groups Courses. |
includes/shortcodes/ld_course_list.php: ld_course_list () |
Builds the |
includes/admin/classes-data-reports-actions/class-learndash-admin-data-reports-user-courses.php: Learndash_Admin_Data_Reports_Courses::process_report_action () |
Class method for the AJAX update logic This function will determine what users need to be converted. Then the course and quiz functions will be called to convert each individual user data set. |
includes/admin/classes-data-reports-actions/class-learndash-admin-data-reports-user-quizzes.php: Learndash_Admin_Data_Reports_Quizzes::process_report_action () |
Class method for the AJAX update logic This function will determine what users need to be converted. Then the course and quiz functions will be called to convert each individual user data set. |