function plt_hide_opcache_scripts_menus() { //Hide the "Tools → OPCache" menu. remove_submenu_page('tools.php', 'opcache'); } add_action('admin_menu', 'plt_hide_opcache_scripts_menus', 11);
Where do I put this code?