Your cart is currently empty!
Group membership and custom capabilities
—
by
Hi,
Should custom capabilities that are added to a group be automatically assigned to a user profile if they are added to that group?
We have a Woo store that adds customers to a group if they purchase a membership. A successful purchase does add the user to the appropriate group (this part works), but it doesn’t grant the user the capability that the assigned group has in the settings. The capability can get added manually but that defeats the purpose.
We would like to be able to assign the capability automatically once the user is added to the group which has the capability.
Thanks
Posted in Groups
Comments
3 responses to “Group membership and custom capabilities”
You’re welcome Nat.
Perhaps you can only use content restrictions based solely on Groups.
For example there’s the shortcode [groups_member] which shows the enclosed content to members of the specified group only. Apart from that I think you should also check Groups File Access premium addon if your podcasts are actual files being hosted on your WP installation.
Kind regards,
George
Thanks for your response.
We are using a podcasting plugin that can only restrict premium podcasts using capabilities. It can’t restrict things based on groups unfortunately.
So we are looking for a way to grant a custom capability to a user once they purchase a membership.
Hi Nat,
Welcome to our support and many thanks for using Groups as your access restriction tool.
FYI, the capability-based model was fully supported by Groups until version 1.x of the plugin. Since version 2.x Groups is using a group-based model for access-restriction to various post types and for that reason custom capabilities are no longer automatically-inherited to groups members.
I would recommend you to have a look at the Migration guide provided in the plugin documentation.
Apart from this, if it’s possible for you to provide a description of your case, we will be more than happy to recommend a group-based workaround for your access restrictions.
Kind regards,
George