function plt_hide_hcaptcha_for_forms_and_more_menus() { //Hide the "Settings → hCaptcha" menu. remove_submenu_page('options-general.php', 'hcaptcha'); } add_action('admin_menu', 'plt_hide_hcaptcha_for_forms_and_more_menus', 11);
Where do I put this code?