The Pro version of PublishPress Capabilities allows you to block access to admin menu links in the Gravity Forms plugin. This is useful because Gravity Forms has limited options for controlling who can access the admin screens.
Gravity Forms is perhaps the most popular contact form plugin for WordPress. You can build and publish your WordPress forms in just minutes. Choose your fields, configure your options and easily embed forms on your WordPress-powered site. Gravity Forms allows you to easily integrate with third party services such as PayPal, Mailchimp, and Zapier.
When you first install Gravity Forms, you'll see one top-level menu link, plus eight sub-menus.
- New Form
- System Status
It is possible to control who can access these links by using the PublishPress Capabilities Pro plugin.
- After installing PublishPress Capabilities Pro, go to “Capabilities”, then “Admin Menus” in your WordPress admin area:
- In the top-left corner of this screen, choose the role that you want to edit. In the image below, I'm going to restrict access for the “Editor” role. By default, Editors aren't given access to Gravity Forms, but site administrators often do they give them some access, as in this example.
- Scroll down and you can enter a red X for any menu link that you don't want users in the Editor role to access.
- Click “Save Changes”.
Now when an Editor logs in to your site, they will not be able to see the blocked Gravity Forms menu links.
This approach works for the core Gravity Forms plugin and can also be used for add-on plugins from the official site, or third-party sites.