learndash_is_group_leader_user( int|WP_User $user )
Checks if a user has the group leader capabilities.
Description #
Replaces the is_group_leader
function.
Parameters #
- $user
-
(int|WP_User) (Optional) The
WP_User
object or user ID to check. Default 0.
Return #
(boolean) Returns true if the user is group leader otherwise false.
Source #
File: includes/ld-groups.php
Changelog #
Version | Description |
---|---|
2.3.9 | Introduced. |
Related #
Namespace #
@package #
Uses #
Uses | Description |
---|---|
includes/ld-groups.php: learndash_is_admin_user () |
Checks if a user has the admin capabilities. |
Used By #
Used By | Description |
---|---|
includes/gutenberg/lib/class-learndash-gutenberg-block.php: LearnDash_Gutenberg_Block::block_attributes_get_user_id () |
Utility function to determine the User ID from the block attributes. |
includes/quiz/ld-quiz-functions.php: learndash_quiz_statistics_users_select2 () |
Quiz Statistics History panel users selector AJAX (select2) |
includes/ld-groups.php: learndash_check_group_leader_course_user_intersect () |
Check if the Group Leader AND User and Course have common Groups. |
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/admin/classes-posts-edits/class-learndash-admin-assignment-edit.php: learndash_group_leader_can_edit_assignment_filter () | |
includes/admin/classes-posts-edits/class-learndash-admin-essay-edit.php: learndash_group_leader_can_edit_essay_filter () | |
includes/rest-api/v2/class-ld-rest-quiz-statistics-controller.php: LD_REST_Quiz_Statistics_Controller_V2::users_for_stats () |
User IDs for fetching statistics. |
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/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::get_items_permissions_check () |
Permissions check for getting groups. |
includes/rest-api/v2/class-ld-rest-groups-controller.php: LD_REST_Groups_Controller_V2::get_item_permissions_check () |
Checks if a given request has access to read a post. |
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/admin/classes-posts-listings/class-learndash-admin-assignments-listing.php: Learndash_Admin_Assignments_Listing::listing_filter_by_course () |
Filter the main query listing by the course_id |
includes/admin/classes-posts-listings/class-learndash-admin-essays-listing.php: Learndash_Admin_Essays_Listing::listing_filter_by_course () |
Filter the main query listing by the course_id |
includes/ld-certificates.php: learndash_certificate_display () |
Display the PDF Certificate. |
includes/course/ld-course-functions.php: learndash_can_user_autoenroll_courses () |
Check if user can auto-enroll in courses. |
includes/admin/class-learndash-admin-posts-listing.php: Learndash_Admin_Posts_Listing::selector_filter_for_author () |
Author Selector Filter. |
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_filter_for_course () |
Course Selector Filter. |
includes/admin/classes-posts-listings/class-learndash-admin-assignments-listing.php: Learndash_Admin_Assignments_Listing::listing_table_query_vars_filter_assignments () |
Listing table query vars |
includes/admin/class-learndash-admin-posts-listing.php: Learndash_Admin_Posts_Listing::selector_value_for_author () |
Validate the selector value for Author. |
includes/admin/class-learndash-admin-posts-listing.php: Learndash_Admin_Posts_Listing::selector_value_for_group () |
Validate the selector value for Course. |
includes/admin/class-learndash-admin-posts-listing.php: Learndash_Admin_Posts_Listing::selector_value_for_course () |
Validate the selector value for Course. |
includes/admin/classes-posts-listings/class-learndash-admin-essays-listing.php: Learndash_Admin_Essays_Listing::selector_filter_for_essay_quiz () |
Filter for Essay Quiz Selector |
includes/admin/classes-posts-listings/class-learndash-admin-lessons-listing.php: Learndash_Admin_Lessons_Listing::listing_init () |
Called via the WordPress init action hook. |
includes/admin/classes-posts-listings/class-learndash-admin-questions-listing.php: Learndash_Admin_Questions_Listing::listing_init () |
Called via the WordPress init action hook. |
includes/admin/classes-posts-listings/class-learndash-admin-quizzes-listing.php: Learndash_Admin_Quizzes_Listing::listing_init () |
Called via the WordPress init action hook. |
includes/admin/classes-posts-listings/class-learndash-admin-topics-listing.php: Learndash_Admin_Topics_Listing::listing_init () |
Called via the WordPress init action hook. |
includes/admin/classes-posts-listings/class-learndash-admin-courses-listing.php: Learndash_Admin_Courses_Listing::listing_init () |
Called via the WordPress init action hook. |
includes/admin/classes-posts-listings/class-learndash-admin-essays-listing.php: Learndash_Admin_Essays_Listing::listing_table_query_vars_filter_essays () |
Listing table query vars |
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/admin/classes-posts-listings/class-learndash-admin-users-listing.php: Learndash_Admin_Users_Listing::selector_filter_for_user_course () |
Course Selector Filter. |
includes/ld-certificates.php: learndash_get_group_certificate_link () |
Get Group certificate link for user |
includes/ld-groups.php: learndash_get_groups_leaders_users_for_course_step () |
Get the Group Leader user for a specific Course step. |
includes/ld-groups.php: learndash_fetch_quiz_statistic_history_where_filter () |
Filter Quiz Statistics user listing to show only related users. |
includes/shortcodes/ld_groupinfo.php: learndash_groupinfo_shortcode () |
Builds the |
includes/settings/settings-metaboxes/class-ld-settings-metabox-group-leaders.php: LearnDash_Settings_Metabox_Group_Leaders_Settings::save_post_meta_box () |
Save Settings Metabox |
includes/course/ld-course-functions.php: learndash_can_user_bypass () |
Check if user can bypass action ($context). |
includes/ld-certificates.php: learndash_certificate_details () |
Gets certificate details. |
includes/ld-certificates.php: learndash_get_course_certificate_link () |
Gets the course certificate link for the user. |
includes/ld-assignment-uploads.php: learndash_assignment_permissions () |
Manages the permissions to view the assignment. |
includes/ld-assignment-uploads.php: learndash_register_assignment_upload_type () |
Registers assignments custom post type. |
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/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/shortcodes/ld_group_user_list.php: learndash_group_user_list () |
Group user list |
includes/ld-groups.php: learndash_group_emails () |
Handles group email messages. |
includes/ld-groups.php: learndash_check_group_leader_access () |
Allows group leader access to the admin dashboard. |
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_show_user_course_complete () |
Checks whether to show user course complete. |
includes/ld-users.php: learndash_save_user_course_complete () |
Saves the date of course completion for a user. |
includes/ld-reports.php: learndash_reports_get_activity () |
Queries the user activity for the report. |
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_report_user_ids () |
Gets the list of user IDs for the report. |
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-users-course-progress-controller.php: LD_REST_Users_Course_Progress_Controller_V1::get_users_progress_permissions_check () |
Check User Progress Read Permissions. |
includes/rest-api/v1/class-ld-rest-users-course-progress-controller.php: LD_REST_Users_Course_Progress_Controller_V1::get_users_progress () |
Get User Progress. |
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-controller.php: LD_REST_Groups_Controller_V1::get_items_permissions_check () |
Check Groups Read Permissions. |
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/quiz/ld-quiz-essays.php: learndash_register_essay_post_type () |
Registers the essay post type. |
includes/quiz/ld-quiz-essays.php: learndash_essay_permissions () |
Manages the permissions for the essay post type. |
includes/shortcodes/ld_courseinfo.php: learndash_courseinfo () |
Builds the |
includes/shortcodes/ld_quizinfo.php: learndash_quizinfo () |
Builds the |
includes/lib/wp-pro-quiz/lib/view/WpProQuiz_View_StatisticsAjax.php: WpProQuiz_View_StatisticsAjax::showUserAnswer () | |
includes/lib/wp-pro-quiz/lib/view/WpProQuiz_View_StatisticsNew.php: WpProQuiz_View_StatisticsNew::showHistory () | |
includes/lib/wp-pro-quiz/lib/controller/WpProQuiz_Controller_Statistics.php: WpProQuiz_Controller_Statistics::showNew () | |
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/deprecated/2.3.0/functions.php: is_group_leader () |
Checks if a user is a group leader |
includes/shortcodes/ld_profile.php: learndash_profile () |
Builds the |
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_menu_early () |
The purpose of this early function is to setup the main ‘learndash-lms’ menu page. Then re-position the various custom post type submenu items to be found under it. |
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-menus-tabs.php: Learndash_Admin_Menus_Tabs::show_admin_tabs () |
Show admin tabs |
includes/admin/class-learndash-admin-menus-tabs.php: Learndash_Admin_Menus_Tabs::admin_header_panel () |
Show the new Admin header panel |
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-groups-users-list.php: Learndash_Admin_Groups_Users_List::show_page () |
Show page |
includes/admin/class-learndash-admin-groups-users-list.php: learndash_data_group_reports_ajax () |
Handle Groups Table AJAX for Reports. |
includes/admin/ld-admin.php: learndash_admin_body_class () |
Adds the LearnDash post type to the admin body class. |
includes/admin/class-learndash-admin-user-profile-edit.php: Learndash_Admin_User_Profile_Edit::show_leader_groups () |
Show User Leader of Groups Binary Selector. |