learndash_get_groups_courses_ids( int $user_id, array $group_ids = array() )
Groups all the related course ids for a set of groups IDs.
Description Description
Parameters Parameters
- $user_id
-
(Optional) The User ID to get the associated groups. Defaults to current user ID.
- $group_ids
-
(Optional) An array of group IDs to source the course IDs from. If not provided will use group ids based on user_id access.
Default value: array()
Return Return
(array) An array of course_ids.
Source Source
File: includes/ld-groups.php
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |