wp-config.php
file.Using the code above, they can see the contact form, but when they try to access the form, They will get a message saying ‘You are not allowed to edit this contact form’.
define( 'WPCF7_ADMIN_READ_WRITE_CAPABILITY', 'manage_options' ); /* That's all, stop editing! Happy blogging. */
To hide the Contact-Form-7 from the WordPress side menubar from other users, Use this code.
define( 'WPCF7_ADMIN_READ_CAPABILITY', 'manage_options' ); /* That's all, stop editing! Happy blogging. */