function plt_hide_wp_smart_preloader_menus() { //Hide the "Settings → WP Smart Preloader" menu. remove_submenu_page('options-general.php', 'wsp-loader'); } add_action('admin_menu', 'plt_hide_wp_smart_preloader_menus', 11);
Where do I put this code?