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


Top ↑

Return Return

(array) A list of user's 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.