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.


Top ↑

Return Return

(array) An array of group IDs.


Top ↑

Source Source

File: includes/ld-groups.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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