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