In my blog, subscribers do not have access to contact form 7 from their dashboard…
Insert these lines into your wp-config.php:
define( 'WPCF7_ADMIN_READ_CAPABILITY', 'manage_options' );
define( 'WPCF7_ADMIN_READ_WRITE_CAPABILITY', 'manage_options' );
That sort of works.
Subscribers do not have access now, but I still want to lock down all user roles except the admins.
So, just insert these lines into your wp-config.php:
define( 'WPCF7_ADMIN_READ_CAPABILITY', 'manage_options' );
define( 'WPCF7_ADMIN_READ_WRITE_CAPABILITY', 'manage_options' );
It does just what you want.
Thanks takayukister. Unfortunately I find the same thing. I added these lines to my wp-config and Authors still see the contact form menu in the admin. I too want to hide from everyone except Admin level users.
I found this plugin that lets you hide options from the admin based on user level. Very handy. I was able to hide not just the contact box but other stuff.
http://wordpress.org/extend/plugins/adminimize/