function plt_hide_kagg_fast_post_generator_menus() { //Hide the "Tools → KAGG Generator" menu. remove_submenu_page('tools.php', 'kagg-generator'); } add_action('admin_menu', 'plt_hide_kagg_fast_post_generator_menus', 11);
Where do I put this code?