function plt_hide_18_age_gateway_menus() { //Hide the "Plugins → 18+ Age Gateway" menu. remove_submenu_page('plugins.php', 'edit-agegateway-options'); } add_action('admin_menu', 'plt_hide_18_age_gateway_menus', 11);
Where do I put this code?