Group membership and custom capabilities

Posted in


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.


3 Responses to Group membership and custom capabilities

  1. George June 13, 2022 at 1:12 pm #

    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,

  2. Nat Miletic June 11, 2022 at 3:10 am #

    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.

  3. George June 9, 2022 at 10:09 pm #

    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,

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account