Duplicate Snippet
Embed Snippet on Your Site
MemberPress: Allow a User Role to Access the Admin Area
By default, only users with the Administrator user role will be allowed to access the MemberPress options and related data in the backend of your website (Dashboard).
This code snippet provides access to the MemberPress in your dashboard for any role that is higher in hierarchy than the Subscriber role. For example, these roles could be Editor or Author.
Note: This code will not work with the Subscriber or subscriber-based cloned user roles.
The code example below provides access for all users with the Editor user role.
Code Preview
php
| |
| |
| |
| |
| |
| |
| |
Comments