How to Hide W3 Total Cache Admin Menus

function plt_hide_w3_total_cache_menus() {
	//Hide "Performance".
	remove_menu_page('w3tc_dashboard');
	//Hide "Performance → Dashboard".
	remove_submenu_page('w3tc_dashboard', 'w3tc_dashboard');
	//Hide "Performance → Feature Showcase".
	remove_submenu_page('w3tc_dashboard', 'w3tc_feature_showcase');
	//Hide "Performance → General Settings".
	remove_submenu_page('w3tc_dashboard', 'w3tc_general');
	//Hide "Performance → Page Cache".
	remove_submenu_page('w3tc_dashboard', 'w3tc_pgcache');
	//Hide "Performance → Minify".
	remove_submenu_page('w3tc_dashboard', 'w3tc_minify');
	//Hide "Performance → Database Cache".
	remove_submenu_page('w3tc_dashboard', 'w3tc_dbcache');
	//Hide "Performance → Object Cache".
	remove_submenu_page('w3tc_dashboard', 'w3tc_objectcache');
	//Hide "Performance → Browser Cache".
	remove_submenu_page('w3tc_dashboard', 'w3tc_browsercache');
	//Hide "Performance → Cache Groups".
	remove_submenu_page('w3tc_dashboard', 'w3tc_cachegroups');
	//Hide "Performance → CDN".
	remove_submenu_page('w3tc_dashboard', 'w3tc_cdn');
	//Hide "Performance → FAQ".
	remove_submenu_page('w3tc_dashboard', 'w3tc_faq');
	//Hide "Performance → Support".
	remove_submenu_page('w3tc_dashboard', 'w3tc_support');
	//Hide "Performance → Google PageSpeed".
	remove_submenu_page('w3tc_dashboard', 'w3tc_pagespeed');
	//Hide "Performance → User Experience".
	remove_submenu_page('w3tc_dashboard', 'w3tc_userexperience');
	//Hide "Performance → Install".
	remove_submenu_page('w3tc_dashboard', 'w3tc_install');
	//Hide "Performance → Setup Guide".
	remove_submenu_page('w3tc_dashboard', 'w3tc_setup_guide');
	//Hide "Performance → About".
	remove_submenu_page('w3tc_dashboard', 'w3tc_about');
	//Hide "Performance → Extensions".
	remove_submenu_page('w3tc_dashboard', 'w3tc_extensions');
	//Hide "Performance → Statistics".
	remove_submenu_page('w3tc_dashboard', 'w3tc_stats');
}

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

Where do I put this code?