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