How to Hide the "hCaptcha" Admin Menu

function plt_hide_hcaptcha_for_forms_and_more_menus() {
	//Hide the "Settings → hCaptcha" menu.
	remove_submenu_page('options-general.php', 'hcaptcha-options');
}

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

Where do I put this code?