WordPress.org

Forums

Groups
[resolved] Remove "Registered" group (5 posts)

  1. indira14
    Member
    Posted 1 year ago #

    Hi!

    I am so happy with this plug in, thanks so much!

    I made an account page where the logged in user can see which groups he is inrolled in. But the list also shows the "Registered" group. I'd like to remove that group, but I found that it is not deletable. Is there a way to hide it or prevent users to automatically go in the Registered group?

    Thanks in advance.

    http://wordpress.org/plugins/groups/

  2. itthinx
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for your feedback :)

    You can't remove the Registered group, but it might be a good idea to be able to specify group names along with the [groups_user_groups] shortcode (which you currently can't).

    I'll look into this and see if it makes sense to add that as an attribute to the shortcode. That way you would be able to specify a list of groups which would be shown if the user belongs to those. Something like:

    [groups_user_groups group="Silver,Gold"]

  3. indira14
    Member
    Posted 1 year ago #

    For this specific issue it would not be efficient to use those attributes. For every newly added group I'd have to add it to the shortcode too...

    The site I'm using your plugin on is about training courses. People who log in and go to their account page have to see which courses they are enrolled in. That's why I want to get rid of the "Registered" group.

    Hoping this can be arranged!

  4. itthinx
    Member
    Plugin Author

    Posted 1 year ago #

    With 1.4.8 just released you have the exclude_group attribute for that shortcode. The documentation needs to be updated but here's an example:

    [groups_user_groups exclude_group="Registered"]

    The above will list all groups the user belongs to except the Registered group.

  5. indira14
    Member
    Posted 1 year ago #

    Wow, that's perfect. Thank you so much for updating the plugin to make this possible!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Groups
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.