Remove Contact Form 7 From WordPress Admin Menu

Remove Contact Form 7 From WordPress Admin Menu

The Contact Form 7 plugin by Takayuki Miyoshi is a straightforward and quick option to construct highly effective contact kinds for any wordpress web site. Typically, as builders, we discover the necessity to limit entry to the Contact forms created utilizing Contact Form 7 for a consumer’s web site in an effort to maintain them from altering the construction of the forms. The primary thought is remove Contact Form 7 hyperlink from the Admin Menu, then different clients will not able to access the form editor or they do not know it exists.

Remove Contact Form 7

Right here is a straightforward option to take away Contact Form 7 From the WordPress Admin Menu for all customers that shouldn't have Admin entry to the WordPress dashboard:

/* Remove Contact Form 7 Links from backend menu bar for other users */
    if (!(current_user_can('administrator'))) {
	function remove_wpcf7() {
	    remove_menu_page( 'wpcf7' ); 
	}

	add_action('admin_menu', 'remove_wpcf7');
     }

Just place this little bit of code in your functions.php file and you'll see the WordPress Contact Form 7 admin menu hyperlink disappear for all other users. Now, simply with few easy steps, you will have fully restricted different individuals to entry and edit your forms, even when they struggle with enhancing url.

You probably have any concept or different resolution to remove Contact Type 7 from Admin Menubar, please contribute right here or please leave a comment below.

You can share this story by using your social accounts: