learndash_get_groups( boolean $id_only = false, int $current_user_id )
Gets the list of all groups.
Description Description
Parameters Parameters
- $id_only
-
(Optional) Whether to return only IDs.
Default value: false
- $current_user_id
-
(Optional) ID of the user for checking capabilities. Default 0.
Return Return
(array) An array of group IDs.
Source Source
File: includes/ld-groups.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |