Control Access to Contact Form 7 Admin Menus

The Pro version of PublishPress Capabilities allows you to block access to admin menu links in the Contact Form 7 plugin. This is useful because Contact Form 7 has very limited options for controlling who can access the admin screens.

Contact Form 7 is the most popular contact form plugin for WordPress. You can manage multiple contact forms, and easily customize each form and the emails it sends. Contact Form 7 supports Ajax-powered submitting, CAPTCHA, Akismet spam filtering and much more.

When you first install Contact Form 7, you'll see one top-level menu link, plus three sub-menus. All of these links are available to users in the Administrator role.

  • Contact Forms
  • Add New
  • Integration
Contact Form 7
Contact Form 7

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.
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”.
Editor Contact Form 7
Editor Contact Form 7 1

Now when an Editor logs in to your site, they will not be able to see any Contact Form 7 menu links.

Editor Admin Menus
Editor Admin Menus

This approach works for the core Contact Form 7 plugin and can also be used for add-on plugins such as Flamingo which records entries for Contact Form 7 forms.