Hide Contact-Form-7 Administration panel to other users

By Default the Contact-Form-7 Administration panel is visible to all the users.
You can control this by adding a little code in the wp-config.php file.
There are two kind of code you can add to access the Contact-Form-7 Administration panel. Lets look at both.

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. */


GoodHelpful!Very Helpful!Awesome!!   Is the article helpful?
Copyright © 2006 - 2019 beekeepersblog. All rights reserved