The Uncanny Groups for LearnDash 5.3 release is now available! This update to our popular group management plugin for LearnDash adds 1 key new feature: a way to edit LearnDash groups in the front end. It’s an optional new tool that will make group edits a lot easier for many sites (and reduce the need for admin support).
Edit LearnDash Groups in the Front End
Uncanny Groups has supported front end LearnDash group creation for several years. Group editing was a much more difficult piece to tackle, as we had to consider implications for groups created via ecommerce, how to limit course access, what fields should and shouldn’t be available for editing, etc. In the 5.3 release, we’re adding a new shortcode and a new Gutenberg block to make group editing possible. Here’s the shortcode and the attributes it supports:
[uo_groups_edit_group group_name="show" total_seats="show" group_courses="show" category="" course_category=""]
There’s a lot to explain here, so let’s tackle each attribute.
The first attribute, group_name, determines whether or not the user editing the group (i.e. the Group Leader or admin) can modify the group name from the group edit page. If the group supports seats, the total_seats attributes determines whether or not the user editing the group can change the number of seats for the group (keep in mind, of course, that the number cannot be less than the number of students in the group.
The next attribute, group_courses, allows Group Leaders or admins to change (so add or remove) courses from the group. But which courses are available to the group? That’s where the category and course_category attributes come in; when included in the shortcode or block, only courses matching the category or course_category settings will be available. (To include multiple categories, separate the category slugs by comma.)
Here’s what a group edit page that supports changing name, seats and courses looks like:
Link LearnDash Group Editing to Group Management
You’re probably now wondering how you choose a group to edit and how your Group Leaders will find this tool.
There are 2 steps to enabling the optional front end group editing tool on your website:
- Create a new page with the [uo_groups_edit_group] shortcode.
- Update your Group Management page shortcode to link to the group edit page.
To link the Group Management page to the edit group page, there’s a new attribute for [uo_groups], so it must be updated to look like this:
The edit_url attribute defines where the edit group page set up in the section above is located. When it’s defined, the Group Management page will display an Edit group button next to the group name. It will look like this:
The Edit Group feature is a really powerful new addition for Uncanny Groups, and we hope you find it useful.
Other Uncanny Groups additions
The new Edit LearnDash Group wizard is certainly the highlight of Uncanny Groups 5.3, but there are a number of new important enhancements.
There’s better support for formatting when RTL languages are used, the “Add and invite users” is set as the default option when users are imported via CSV file (for consistency with other methods to add users).
We hope you find the additions useful!