learndash_get_user_courses_from_meta( int $user_id )
Gets all courses for the user via the user meta ‘course_XXX_access_from’.
Description Description
Parameters Parameters
- $user_id
-
(Optional) ID of the user to get meta. Default 0.
Return Return
(array) An array of user's course IDs.
Source Source
File: includes/ld-users.php
Changelog Changelog
Version | Description |
---|---|
2.2.1 | Introduced. |