learndash_is_group_leader_of_user( int $group_leader_id, int $user_id )
Checks whether a group leader is an admin of a user’s group.
Contents
Description #
Parameters #
- $group_leader_id
-
(int) (Required) Group leader ID.
- $user_id
-
(int) (Required) User ID.
Return #
(boolean) Returns true if group leader is an admin of a user's group otherwise false.
Source #
File: includes/ld-groups.php
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |
Related #
Uses #
Uses | Description |
---|---|
includes/ld-groups.php: learndash_is_user_in_group () |
Checks whether a user is part of the group or not. |
includes/ld-groups.php: learndash_get_administrators_group_ids () |
Gets the list of group IDs administered by the user. |
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_step_items_permissions_check () |
Permissions check for getting user progress item. |
includes/rest-api/v2/class-ld-rest-users-course-progress-controller.php: LD_REST_Users_Course_Progress_Controller_V2::get_header_items_permissions_check () |
Permissions check for getting user progress items. |
includes/rest-api/v2/class-ld-rest-users-course-progress-controller.php: LD_REST_Users_Course_Progress_Controller_V2::check_request_params () |
Common function to check and set request params used by the endpoints. |
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-course-progress-controller.php: LD_REST_Users_Course_Progress_Controller_V2::get_header_item_permissions_check () |
Permissions check for getting user progress item. |
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/admin/classes-posts-listings/class-learndash-admin-assignments-listing.php: Learndash_Admin_Assignments_Listing::listing_table_query_vars_filter_assignments () |
This function is documented in includes/admin/class-learndash-admin-posts-listing.php |
includes/admin/classes-posts-listings/class-learndash-admin-essays-listing.php: Learndash_Admin_Essays_Listing::listing_table_query_vars_filter_essays () |
This function is documented in includes/admin/class-learndash-admin-posts-listing.php |
includes/gutenberg/blocks/ld-groupinfo/index.php: LearnDash_Gutenberg_Block_Groupinfo::render_block () |
Render Block |
includes/ld-assignment-uploads.php: learndash_assignment_permissions () |
Manages the permissions to view the assignment. |
includes/ld-assignment-uploads.php: learndash_assignment_process_init () |
Handles the upload, delete, and mark as complete for the assignment. |
includes/class-ld-lms.php: SFWD_LMS::get_course_info () |
Returns output of users course information for bottom of profile |
includes/ld-users.php: learndash_save_user_course_complete () |
Saves the date of course completion for a user. |
includes/rest-api/v1/class-ld-rest-users-course-progress-controller.php: LD_REST_Users_Course_Progress_Controller_V1::get_users_progress_permissions_check () | |
includes/quiz/ld-quiz-essays.php: learndash_essay_permissions () |
Manages the permissions for the essay post type. |
includes/gutenberg/blocks/ld-user-groups/index.php: LearnDash_Gutenberg_Block_User_Groups::render_block () |
Render Block |
includes/gutenberg/blocks/ld-usermeta/index.php: LearnDash_Gutenberg_Block_Usermeta::render_block () |
Render Block |
includes/gutenberg/lib/class-learndash-gutenberg-block.php: LearnDash_Gutenberg_Block::prepare_course_list_atts_to_param () |
Common function used by the ld_course_list, ld_lesson_list, ld_topic_list, and ld_quiz_list called from the render_block short/block processing function. |
includes/gutenberg/blocks/ld-courseinfo/index.php: LearnDash_Gutenberg_Block_Courseinfo::render_block () |
Render Block |
includes/gutenberg/blocks/ld-profile/index.php: LearnDash_Gutenberg_Block_Profile::render_block () |
Render Block |
includes/gutenberg/blocks/ld-quiz-complete/index.php: LearnDash_Gutenberg_Block_Quiz_Complete::render_block_xxx () |
Render Block |
includes/gutenberg/blocks/ld-certificate/index.php: LearnDash_Gutenberg_Block_Certificate::render_block () |
Render Block |
includes/gutenberg/blocks/ld-course-expire-status/index.php: LearnDash_Gutenberg_Block_Course_Expire_Status::render_block () |
Render Block |
includes/gutenberg/blocks/ld-course-info/index.php: LearnDash_Gutenberg_Block_Course_Info::render_block () |
Render Block |
includes/gutenberg/blocks/ld-course-progress/index.php: LearnDash_Gutenberg_Block_Course_Progress::render_block () |
Render Block |
includes/gutenberg/blocks/ld-course-resume/index.php: LearnDash_Gutenberg_Block_Course_Resume::render_block () |
Render Block |
includes/course/ld-course-info-widget.php: wp_ajax_ld_course_progress_pager () |
Handles the AJAX pagination for the course progress. |
includes/course/ld-course-info-widget.php: wp_ajax_ld_quiz_progress_pager () |
Handles the AJAX pagination for the quiz progress. |
includes/course/ld-course-info-widget.php: wp_ajax_ld_course_registered_pager () |
Handles the AJAX pagination for the courses registered. |