Restrict based on multiple group membership

Posted in

Is it possible to restrict content to users who are members of two groups? For example.

Group A can buy product 1
Group B can buy product 2

User must be a member of group A AND group B in order to buy product 3.

In other words we want the customer to buy product 1 AND product 2 before product 3 is available.



One Response to Restrict based on multiple group membership

  1. antonio August 21, 2015 at 7:46 am #

    Hi Justin,
    right now the condition is OR, so you can not do it.
    But you could use the ‘woocommerce_is_purchasable‘ filter to create your own conditions.
    Kind regards,
    Antonio B.

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