How to Hide Contact Form 7 Admin Menus

function plt_hide_contact_form_7_menus() {
	//Hide "Contact".
	remove_menu_page('wpcf7');
	//Hide "Contact → Contact Forms".
	remove_submenu_page('wpcf7', 'wpcf7');
	//Hide "Contact → Add New".
	remove_submenu_page('wpcf7', 'wpcf7-new');
	//Hide "Contact → Integration".
	remove_submenu_page('wpcf7', 'wpcf7-integration');
}

add_action('admin_menu', 'plt_hide_contact_form_7_menus', 11);

Where do I put this code?