function plt_hide_cron_logger_menus() { //Hide the "Tools → Cron Logs" menu. remove_submenu_page('tools.php', 'cron-logs'); } add_action('admin_menu', 'plt_hide_cron_logger_menus', 11);
Where do I put this code?