How to Hide reCaptcha by BestWebSoft Admin Menus

function plt_hide_google_captcha_menus() {
	//Hide "reCaptcha".
	remove_menu_page('google-captcha.php');
	//Hide "reCaptcha → Settings".
	remove_submenu_page('google-captcha.php', 'google-captcha.php');
	//Hide "reCaptcha → Allow List".
	remove_submenu_page('google-captcha.php', 'google-captcha-allowlist.php');
	//Hide "reCaptcha → BWS Panel".
	remove_submenu_page('google-captcha.php', 'gglcptch-bws-panel');
	//Hide "reCaptcha → Upgrade to Pro".
	remove_submenu_page('google-captcha.php', 'https://bestwebsoft.com/products/wordpress/plugins/google-captcha/?k=b850d949ccc1239cab0da315c3c822ab&pn=109&v=1.74&wp_v=6.5.2');
}

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

Where do I put this code?