Membership: Can a User's role change onclick a non-subscription button?

Using PHP in the backend, how can I make the User’s membership role change onclick any non-subscription button in the site?

Eg. If they click the WP ‘Submit Comment’ button, their role changes from ‘Blue Member’ to ‘Green Member’.


  • Timothy
    • Chief Pigeon

    Hey there.

    That wouldn’t be possible by default, in order to be moved roles they would need to be moved to another Access Level. (Using the Advanced options)

    Each Access Level can assign a member to a specific role but its only one role, not multiple. So they would need to either progress them through roles naturally or swap subscription. (thus different role to the Access Level on that subscription)

    To change their role based upon commenting you would need to do some custom code for that, if you are not able then you would need to consider hiring a developer unfortunately. Sorry.

    Take care.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.