Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Wouldn’t a plugin like memberships do this? Buy X product to get X membership/access?

    Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Hi,
    I changed the code suggested there to work with multiple products, please check here: https://nicolamustone.com/2016/03/07/changing-user-role-purchasing/

    Also, what Mike said about memberships could work as well, depending on why you need to change the user role. If it’s to give them access to specific parts of your website, like pages, posts, or other products, a membership plugin would be better.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change User Role on Purchase of several Products or for one category product ?’ is closed to new replies.