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()


Top ↑

Return Return

(array) An array of course_ids.


Top ↑

Source Source

File: includes/ld-groups.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.