Get current group ID in PHP
-
We are preparing a plugin shortcode that will go on the same page with the [uo_groups] shortcode (what a great plugin! If a group leader is a leader in more than 1 group, they get a drop-down to select the group they wish to work with!)
So in our plugin we desperately need access to the current group ID once the group leader has made a selection and chosen the group they wish to administer. It looked like $ulgm_current_managed_group_id or GroupManagementInterface::$ulgm_current_managed_group_id might do the trick, bit the former does not come up with a value and the latter causes an error. Is there a variable, function or method we can get to return the currently selected group ID? learndash_get_groups($user_id) is getting us a nice, accurate list of groups, but we need the actual current group ID once the group leader has made a group selection from the [uo_groups] – furnished drop-down.
Any help or suggestions?
The page I need help with: [log in to see the link]
- The topic ‘Get current group ID in PHP’ is closed to new replies.