function plt_hide_ampify_io_amp_menus() { //Hide the "Tools → Ampify" menu. remove_submenu_page('tools.php', 'ampify-io-amp'); } add_action('admin_menu', 'plt_hide_ampify_io_amp_menus', 11);
Where do I put this code?