Browse: Home / Functions /

learndash_get_groups

learndash_get_groups( boolean $id_only = false,  int $current_user_id )

Gets the list of all groups.


Description #


Parameters #

$id_only

(boolean) (Optional) Whether to return only IDs.

Default value: false

$current_user_id

(int) (Optional) ID of the user for checking capabilities. Default 0.


Return #

(array) An array of group IDs.


Source #

File: includes/ld-groups.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.