Groups

Deskripsi

Groups is designed as an efficient, powerful and flexible solution for group-oriented memberships and content access control.

It provides group-based user membership management, group-based capabilities and access control for content, built on solid principles.

Groups is light-weight and offers an easy user interface, while it acts as a framework and integrates standard WordPress capabilities and application-specific capabilities along with an extensive API.

Enhanced functionality is available via Official Extensions for Groups.

Documentation

The official documentation is located at the Groups Documentation pages.

Features

User groups

  • Supports an unlimited number of groups
  • Provides a Registered group which is automatically maintained
  • Users can be assigned to any group
  • Users are added automatically to the Registered group

Groups hierarchy

  • Supports group hierarchies with capability inheritance

Group capabilities

  • Integrates standard WordPress capabilities which can be assigned to groups and users
  • Supports custom capabilities: allows to define new capabilities for usage in plugins and web applications
  • Users inherit capabilities of the groups they belong to
  • Groups inherit capabilities of their parent groups

Access control

Access to posts, pages and custom post types can be restricted by group.

If access to a post is restricted to one or more groups, only users who belong to one of those groups may view the post.

Fully supports custom post types, so that access to post types such as products or events can easily be restricted.

  • Built-in access control that allows to restrict access to posts, pages and custom content types to specific groups and users only
  • Control access to content by groups: shortcodes allow to control who can access content on posts, show parts to members of certain groups or to those who are not members –
    Shortcodes: [groups_member], [groups_non_member]
  • Control access to content by capabilities: show (or do not show) content to users who have certain capabilities –
    Shortcodes: [groups_can], [groups_can_not]
  • Blocks: The Groups Member block allows to restrict the visibility of its content to members of selected groups.
    The Groups Non-Member block hides its content from members of chosen groups.
    The blocks can be nested to provide multiple layers of access control to content.

Easy user interface

  • Integrates nicely with the standard WordPress Users menu
  • Provides an intuitive Groups menu
  • Conceptually clean views showing the essentials
  • Quick filters
  • Bulk-actions where needed, for example apply capabilities to groups, bulk-add users to groups, bulk-remove users from groups

Sensible options

  • Enable access restrictions by custom post type
  • An optional tree view for groups can be shown when desired
  • Provides its own set of permissions
  • Administrator overrides for tests
  • Cleans up after testing with a “delete all plugin data” option

Framework

  • Groups is designed based on a solid and sound data-model with a complete API that allows developers to create group-oriented web applications and plugins

Multisite

  • All features are supported independently for each blog in multisite installations

Feedback

Feedback is welcome!

If you need help, have problems, want to leave feedback or want to provide constructive criticism, please do so here at the Groups Plugin page.

Please try to solve problems there before you rate this plugin or say it doesn’t work. There goes a lot of work into providing you with free quality plugins! Please appreciate that and help with your feedback. Many thanks!

Twitter

Follow @itthinx on Twitter for updates on this and other plugins.

Translations

Brazilian Portuguese translation by Walter Jaworski,
Dutch translation by Carsten Alsemgeest,
French translation by Stéphane Passedouet,
German translation by itthinx,
Lithuanian translation by Vincent G,
Spanish translation by Juan Amor,
Swedish translation by Andréas Lundgren.

Many thanks for your help!

Tangkapan Layar

  • Groups - this is where you add and remove groups and assign capabilities to groups.
  • Capabilities - here you get an overview of the capabilities that are defined and you can add and remove capabilities as well.
  • Users - group membership is managed from the standard Users admin view.
  • Filter the list of users by one or more groups.
  • Add users to groups or remove them in bulk.
  • Groups a users belongs to shown in the user profile.
  • Filter posts by groups.
  • Add or remove access restrictions based on groups in bulk.
  • Restrict access on pages and posts (and other custom post types) ... you can restrict access to users who are members of one or more groups.
  • A post restricted to members of a Premium group only.
  • Usage of the [groups_member] and [groups_non_member] shortcodes to limit visibility of content to users who are members of a group or users who are not members of a group. Multiple comma-separated groups can be specified.
  • Usage of the [groups_can] and [groups_can_not] shortcodes. Limits visibility of enclosed content to those users who have the capability or those who do not. Multiple capabilities can be given.
  • Options - you can adjust the plugin's settings here.
  • More options.

Blok

Plugin ini menyediakan 2 blok.

  • Groups
  • Groups

Instalasi

  1. Upload or extract the groups folder to your site’s /wp-content/plugins/ directory. You can also use the Add new option found in the Plugins menu in WordPress.
  2. Enable the plugin from the Plugins menu in WordPress.

Tanya Jawab

Where is the documentation?

The official documentation is located at the Groups Documentation pages.

I have a question, where do I ask?

For questions directly related to Groups, you can leave a comment at the Groups Plugin page.

How do I restrict access to a post?

Let’s assume you want members of the Premium group to be able to view some restricted posts.

  • If you want to create a new protected post, simply go to Posts > Add New as usual and in the Groups box input Premium in the Read field. Save or publish your post.
  • If you want to protect an existing post you can simply edit it, input Premium in the Read field of the Groups box and update the post.

In both cases, it doesn’t matter if the Premium group already exists or not, if it doesn’t, it will be created automatically.

If the Premium group already exists and you want to protect one or more existing posts in bulk, go to Posts, select all posts you want to protect and choose Edit in the Bulk Actions dropdown.
Now click Apply, select the Premium group and click Update.

After you publish or update your posts, only members of the Premium group will be able to see them.

I want Advanced and Premium members, where the Premium members can access everything that Advanced members can access. How can I do that?

Example: Advanced and Premium members

  1. Go to Groups > Groups > New Group and add two new groups, let’s call them Advanced and Premium – select Advanced as the Parent for the Premium group.
  2. Now create an example post that only members of the Advanced group should be able to access and choose the Advanced group in the Read field of the Groups box.
  3. Create another post for members of the Premium group and choose the Premium group for that post.
  4. Assign test users to both groups, log in as each user in turn and see which posts will be accessible.

How do I limit access to posts so that users in group A can not read the same as those in group B and vice-versa?

Example: Green and Red members

  1. Go to Groups > Groups > New Group and add two new groups, let’s call them Green Members and Red Members
  2. Now create an example post that only members of the Green Members group should be able to see and choose the Green Members group in the Groups box.
  3. Create another post for Red Members and choose the Red Members group for that post.
  4. Assign a test user to each of the groups, log in as one of them and you will see that the member of the Green Members group will only have access to the post protected by that group but not to the post protected with the Red Members group and vice-versa.

Are access restrictions for Custom Post Types (CPT) supported?

Yes. Access restrictions can be turned on or off for specific CPTs on the Groups > Options page.

How can I show groups that users belong to on their profile page in the admin section?

Go to Groups > Options and enable the option under User profiles.

Developers … aka … What about Groups’ API?

The Groups plugin provides an extensive framework to handle memberships, group-based capabilities and access control.

The API documentation is available here: Groups API.

Also refer to the official Groups Plugin page to post your questions and the Groups Documentation pages.

Ulasan

3 Januari 2021
Nothing in this world is perfect, but this plugin is still fantastic and worth a try for those looking for a very minimal yet effective way to put their blog members in groups and restrict content. I love it a lot because it's not bloated at all and did not negatively affect my website's speed. I don't need any payment features - as I am just a non-profit hobbyist - so Groups serves my purpose much more than paid membership plugins (that are directed more towards for-profit websites and come with an excess of features I don't need and won't use). There are a few things I would want to change in this plugin so far (based on my projects and experiments with it). First, it would be great to have a way to assign a Group slug and to use that slug when restricting content with the shortcodes. This is because IDs are hard to remember, and could change, and also since my Group names are sometimes in a foreign language. While Groups deals with UTF8 characters like a pro, it's a bit of a hassle to switch languages (and language directions) when writing shortcodes. Also, my group names are for study projects, so they tend to be long...very long. Hence, a group_slug would be handy and more practical. The other feature I'd hope to see is a new conditional shortcode. So far, shortcodes exists to show content to members or a group or nonmembers of a group (or groups). But the rules are that content in shown/hidden to group members of any of the IDs/Names listed in the shortcode. What I sometimes need is to show content to members of Group A who are also members of Group B, and at the same time keep the content hidden to members of Group A who are NOT members of Group B. I don't know why I must complicate things (I'm working on adopting a keep it simple attitude, but here in this review I am just taking a moment to dream out loud a bit). Still, all in all, I still love Groups. I like it so much I intend to make a mug or sticker with I ♥ Groups, and I am serious about this. The day I came across it was a day to be thankful for, no joke, I only wish I remember the exact date... Anyway, I will definitely be looking at the for sale add-ons to this plugin because I feel if this free, base plugin is this good then the add-ons must be worth it. And also, just because I want to support whoever is behind this. You are amazing. Keep up the good work on this plugin, please! It's a gem. 💎 Thank you.
Baca semua 288 ulasan

Kontributor & Pengembang

“Groups” adalah perangkat lunak open source. Berikut ini mereka yang sudah berkontribusi pada plugin ini.

Kontributor

“Groups” telah diterjemahkan dalam 5 bahasa. Terima kasih kepada para penerjemah untuk kontribusi-nya.

Terjemahkan “Groups” dalam bahasa Anda.

Tertarik mengembangkan?

Lihat kode, periksa repositori SVN , atau mendaftar ke log pengembangan melalui RSS.

Log Perubahan

2.8.0

  • Added the Groups Members block: A block whose content is only visible for members of selected groups.
  • Added the Groups Non-Members block: a block whose content is hidden for members of chosen groups.
  • Removed use of parenthesis with require_once and include_once.

For the full changelog see changelog.txt.