How to Hide Titan Anti-spam & Security Admin Menus

function plt_hide_anti_spam_menus() {
	//Hide "Settings → Anti-spam".
	remove_submenu_page('options-general.php', 'antispam-titan_security');
	//Hide "Titan Anti-spam".
	remove_menu_page('dashboard-titan_security');
	//Hide "Site Checker".
	remove_menu_page('sitechecker-titan_security');
	//Hide "Error Log".
	remove_menu_page('logs-titan_security');
	//Hide "Tweaks".
	remove_menu_page('tweaks-titan_security');
	//Hide "Components".
	remove_menu_page('components-titan_security');
	//Hide "License".
	remove_menu_page('license-titan_security');
	//Hide "Settings".
	remove_menu_page('plugin_settings-titan_security');
	//Hide "Audit".
	remove_menu_page('check-titan_security');
	//Hide "Firewall".
	remove_menu_page('firewall-titan_security');
	//Hide "Settings".
	remove_menu_page('firewall-settings-titan_security');
	//Hide "Blocking".
	remove_menu_page('firewall-blocking-titan_security');
	//Hide "Attacks log".
	remove_menu_page('firewall-attack-log-titan_security');
	//Hide "Limit login Attempts".
	remove_menu_page('bruteforce-titan_security');
	//Hide "Login Attempts Log".
	remove_menu_page('firewall-activity-log-titan_security');
}

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

Where do I put this code?