How to Hide Advanced noCaptcha & invisible Captcha Admin Menus

function plt_hide_advanced_nocaptcha_recaptcha_menus() {
	//Hide the "Settings → Advanced noCaptcha & invisible captcha" menu.
	remove_submenu_page('options-general.php', 'anr-admin-settings');
	//Hide the "Settings → Support Forum" menu.
	remove_submenu_page('options-general.php', 'anr-admin-settings-wp-support-forum');
	//Hide the "Settings → Upgrade" menu.
	remove_submenu_page('options-general.php', 'anr-admin-settings-pricing');
}

add_action('admin_menu', 'plt_hide_advanced_nocaptcha_recaptcha_menus', 1000000000);

Where do I put this code?