function plt_hide_tnc_ai_excerpt_generator_menus() { //Hide the "Settings → TNC AI Excerpt" menu. remove_submenu_page('options-general.php', 'tnc-ai-excerpt-generator'); } add_action('admin_menu', 'plt_hide_tnc_ai_excerpt_generator_menus', 11);
Where do I put this code?