Banner Image for Update Capabilities for Level-Generate Roles

Core Paid Memberships Pro assigns the site default role (most often “subscriber”) to all new users created during membership checkout. We also offer the optional Roles for Membership Add On for sites that need to customize the WordPress role that gets assigned by membership level.

Using this Add On, you can specify what role the member should receive in addition to their membership level: a custom-generated role for their level, a default WordPress role, or any combination of roles that you need.

By default, all custom-generated roles match the capabilities of the WordPress “subscriber” role.

For some sites, like Associations or multi-author blogs, you may want your members to have additional WordPress capabilities for their level and user role.

This code recipe will allow you to change the default capabilities of custom-generated roles when using Paid Memberships Pro and the Role for Membership Add On. 

This content requires a premium membership plan.