learndash_get_users_group_ids( int $user_id, boolean $bypass_transient = false )
Get a users group IDs.
Description Description
Parameters Parameters
- $user_id
-
(Optional) User ID. Default 0.
- $bypass_transient
-
(Optional) Whether to bypass transient cache or not.
Default value: false
Return Return
(array) A list of user's group IDs.
Source Source
File: includes/ld-groups.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |