learndash_get_administrators_group_ids( int $user_id, boolean $menu = false )
Gets the list of group IDs administered by the user.
Description #
Parameters #
- $user_id
-
(int) (Required) User ID.
- $menu
-
(boolean) (Optional) Menu.
Default value: false
Return #
(array) A list of group ids managed by user.
Source #
File: includes/ld-groups.php
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |
Related #
Namespace #
@package #
Uses #
Uses | Description |
---|---|
includes/ld-groups.php: learndash_is_groups_hierarchical_enabled () |
Utility function to check if Groups post type is hierarchical. |
includes/ld-groups.php: learndash_validate_groups () |
Validate an array of Group post IDs. |
includes/ld-groups.php: learndash_get_group_children () |
Utility function to return all groups below the parent. |
includes/ld-groups.php: learndash_is_admin_user () |
Checks if a user has the admin capabilities. |
includes/ld-groups.php: learndash_get_groups () |
Gets the list of all groups. |
Used By #
Used By | Description |
---|---|
includes/ld-groups.php: learndash_check_group_leader_course_user_intersect () |
Check if the Group Leader AND User and Course have common Groups. |
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-groups-controller.php: LD_REST_Groups_Controller_V2::rest_query_filter () |
Filters Groups request query arguments. |
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-users-controller.php: LD_REST_Groups_Users_Controller_V2::get_groups_users_permissions_check () |
Permissions check for getting group users. |
includes/ld-groups.php: learndash_group_leader_has_cap_filter () |
Check if the Group Leader can edit the Group or Course posts. |
includes/admin/class-learndash-admin-posts-listing.php: Learndash_Admin_Posts_Listing::selector_filter_for_group () |
Group Selector Filter. |
includes/admin/class-learndash-admin-posts-listing.php: Learndash_Admin_Posts_Listing::selector_value_for_group () |
Validate the selector value for Course. |
includes/admin/classes-posts-listings/class-learndash-admin-groups-listing.php: Learndash_Admin_Groups_Listing::listing_table_query_vars_filter_groups () |
Listing table query vars |
includes/admin/classes-posts-listings/class-learndash-admin-users-listing.php: Learndash_Admin_Users_Listing::listing_filter_by_user_group () |
Filter the main query listing by the group_id |
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_group () |
Group Selector Filter. |
includes/ld-groups.php: learndash_get_groups_administrators_users () |
Get all Users within all Groups managed by the Group Leader. |
includes/ld-groups.php: learndash_get_groups_administrators_courses () |
Get all Courses within all Groups managed by the Group Leader. |
includes/ld-groups.php: learndash_get_groups_leaders_users_for_course_step () |
Get the Group Leader user for a specific Course step. |
includes/class-ld-lms.php: SFWD_LMS::course_progress_data () |
Course progress data |
includes/class-ld-lms.php: SFWD_LMS::quiz_export_init () |
Export quiz data to CSV |
includes/shortcodes/ld_user_groups.php: learndash_user_groups () |
Builds the |
includes/ld-groups.php: learndash_is_group_leader_of_user () |
Checks whether a group leader is an admin of a user’s group. |
includes/ld-groups.php: learndash_set_administrators_group_ids () |
Makes user an administrator of the given group IDs. |
includes/ld-groups.php: learndash_get_groups () |
Gets the list of all groups. |
includes/ld-groups.php: learndash_get_users_group_ids () |
Get a users group IDs. |
includes/ld-groups.php: learndash_get_groups_courses_ids () |
Groups all the related course ids for a set of groups IDs. |
includes/ld-reports.php: learndash_get_group_leader_groups_users () |
Gets the list or count of group users for a group leader. |
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-controller.php: LD_REST_Groups_Controller_V1::rest_query_filter () |
Filter query args. |
includes/rest-api/v1/class-ld-rest-groups-users-controller.php: LD_REST_Groups_Users_Controller_V1::get_groups_users_permissions_check () |
Check Group Users Read Permissions. |
includes/shortcodes/ld_course_list.php: ld_course_list () |
Builds the |
includes/admin/class-learndash-admin-menus-tabs.php: Learndash_Admin_Menus_Tabs::learndash_admin_tabs () |
Set up admin tabs for each admin menu page under LearnDash |
includes/admin/class-learndash-admin-groups-users-list-table.php: Learndash_Admin_Groups_Users_List_Table::prepare_items () |
Prepare table list items This function performs the query and sets up the items to display. |
includes/admin/class-learndash-admin-groups-users-list.php: Learndash_Admin_Groups_Users_List::learndash_group_admin_menu () |
Register Group Administration submenu page |
includes/admin/class-learndash-admin-user-profile-edit.php: Learndash_Admin_User_Profile_Edit::show_leader_groups () |
Show User Leader of Groups Binary Selector. |