learndash_get_user_stats learndash_get_user_stats( int|null $user_id = null ) Gets the user statistics. ContentsDescription Parameters Return Source Related Uses Description # Parameters # $user_id (int|null) (Optional) The ID of the user. Defaults to current logged in user. Default value: null Return # (array) An array of user statistics. Source # File: themes/ld30/includes/helpers.php Related # Uses # Uses Uses Description themes/ld30/includes/helpers.php: learndash_get_certificate_count () Gets the certificate count for a user. themes/ld30/includes/helpers.php: learndash-get-user-stats Filters LearnDash user stats. Used to modify user details like courses, points, certificates. includes/ld-users.php: learndash_get_user_course_points () Gets the course points for a user. includes/ld-users.php: learndash_user_get_enrolled_courses () Gets the list of all courses enrolled by the user. includes/shortcodes/ld_course_progress.php: learndash_course_progress () Builds the learndash_course_progress shortcode output.