Control Access to Gravity Forms Admin Menus

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.

  • Forms
  • New Form
  • Entries
  • Settings
  • Import/Export
  • Add-ons
  • System Status
  • Help
All Gravity Forms Menus
All Gravity Forms Menus

It is possible to control who can access these links by using the PublishPress Capabilities Pro plugin.

Admin Menus Woocommerce
Admin Menus Woocommerce
  • 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.
Editor Role Menus
Editor Role Menus
  • 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”.
Gravity Forms Menus Blocked
Gravity Forms Menus Blocked

Now when an Editor logs in to your site, they will not be able to see the blocked Gravity Forms menu links.

Gravity Forms Menus Restricted
Gravity Forms Menus Restricted

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.