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 #
Parameters #
- $user_id
-
(int) (Optional) The User ID to get the associated groups. Defaults to current user ID.
- $group_ids
-
(array) (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 #
(array) An array of course_ids.
Source #
File: includes/ld-groups.php
Changelog #
Version | Description |
---|---|
2.3.0 | Introduced. |