learndash_get_user_courses_from_meta

learndash_get_user_courses_from_meta( int $user_id )

Gets all courses for the user via the user meta ‘course_XXX_access_from’.


Description #


Parameters #

$user_id

(int) (Optional) ID of the user to get meta. Default 0.


Return #

(array) An array of user's course IDs.


Source #

File: includes/ld-users.php


Changelog #

Changelog
Version Description
2.2.1 Introduced.