learndash_get_user_stats( int|null $user_id = null )
Gets the user statistics.
Description #
Parameters #
- $user_id
-
(int|null) (Optional) The ID of the user. Defaults to current logged in user.
Default value: null
Return #
(array{) courses: int, completed: int, points: int, certificates: int } An array of user statistics.
Source #
Changelog #
Version | Description |
---|---|
3.0.0 | Introduced. |