learndash_is_user_in_group learndash_is_user_in_group( int $user_id, int $group_id ) Checks whether a user is part of the group or not. ContentsDescription Parameters Return Source Changelog Related Namespace @package Uses Used By Description # Parameters # $user_id (int) (Required) User ID. $group_id (int) (Required) Group ID. Return # (boolean) Returns true if the user is part of the group otherwise false. Source # File: includes/ld-groups.php Changelog # Changelog Version Description 2.1.0 Introduced. Related # Namespace # global @package # LearnDash / Groups Uses # 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_get_users_group_ids () Get a users group IDs. Used By # Used By Used By Description includes/shortcodes/ld_infobar.php: learndash_infobar_shortcode () Builds the [ld_infobar] shortcode output. includes/ld-groups.php: learndash_get_user_group_progress () Check and recalculate the the status of the Group Courses for the User. includes/settings/settings-billing-functions.php: learndash_payment_buttons () Generates the LearnDash payment buttons output. includes/class-ld-lms.php: SFWD_LMS::get_course_info () Returns output of users course information for bottom of profile includes/ld-groups.php: learndash_is_group_leader_of_user () Checks whether a group leader is an admin of a user’s group. includes/class-ld-cpt-instance.php: SFWD_CPT_Instance::template_content () Generate output for courses, lessons, topics, quizzes Filter callback for ‘the_content’ (wp core filter) includes/course/ld-course-functions.php: learndash_process_course_join () Handles the actions to be made when the user joins a course. includes/shortcodes/ld_course_content.php: learndash_course_content_shortcode () Builds the [course_content] shortcode output. includes/shortcodes/ld_student.php: learndash_student_check_shortcode () Builds the [student] shortcode output. includes/shortcodes/ld_group.php: learndash_ld_group_check_shortcode () Builds the [ld_group] shortcode output. includes/shortcodes/ld_visitor.php: learndash_visitor_check_shortcode () Builds the [visitor] shortcode output. includes/shortcodes/ld_course_list.php: ld_course_list () Builds the [ld_course_list] shortcode output.
Uses # 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_get_users_group_ids () Get a users group IDs.
Used By # Used By Used By Description includes/shortcodes/ld_infobar.php: learndash_infobar_shortcode () Builds the [ld_infobar] shortcode output. includes/ld-groups.php: learndash_get_user_group_progress () Check and recalculate the the status of the Group Courses for the User. includes/settings/settings-billing-functions.php: learndash_payment_buttons () Generates the LearnDash payment buttons output. includes/class-ld-lms.php: SFWD_LMS::get_course_info () Returns output of users course information for bottom of profile includes/ld-groups.php: learndash_is_group_leader_of_user () Checks whether a group leader is an admin of a user’s group. includes/class-ld-cpt-instance.php: SFWD_CPT_Instance::template_content () Generate output for courses, lessons, topics, quizzes Filter callback for ‘the_content’ (wp core filter) includes/course/ld-course-functions.php: learndash_process_course_join () Handles the actions to be made when the user joins a course. includes/shortcodes/ld_course_content.php: learndash_course_content_shortcode () Builds the [course_content] shortcode output. includes/shortcodes/ld_student.php: learndash_student_check_shortcode () Builds the [student] shortcode output. includes/shortcodes/ld_group.php: learndash_ld_group_check_shortcode () Builds the [ld_group] shortcode output. includes/shortcodes/ld_visitor.php: learndash_visitor_check_shortcode () Builds the [visitor] shortcode output. includes/shortcodes/ld_course_list.php: ld_course_list () Builds the [ld_course_list] shortcode output.