-
Home
-
Wibstats
- Tips
function plt_hide_wibstats_statistics_for_wordpress_mu_menus() {
//Hide "Settings → Blog statistics settings".
remove_submenu_page('options-general.php', 'wibstats-options');
//Hide "Blog statistics".
remove_menu_page('wibstats');
//Hide "Blog statistics → Blog statistics".
remove_submenu_page('wibstats', 'wibstats');
//Hide "Blog statistics → Searches".
remove_submenu_page('wibstats', 'wibstats-searches');
//Hide "Blog statistics → Referrers".
remove_submenu_page('wibstats', 'wibstats-referrers');
//Hide "Blog statistics → Direct visitors".
remove_submenu_page('wibstats', 'wibstats-direct');
//Hide "Blog statistics → Pages".
remove_submenu_page('wibstats', 'wibstats-pages');
//Hide "Blog statistics → Locations".
remove_submenu_page('wibstats', 'wibstats-locations');
//Hide "Blog statistics → Times".
remove_submenu_page('wibstats', 'wibstats-times');
//Hide "Blog statistics → Environment".
remove_submenu_page('wibstats', 'wibstats-environment');
}
add_action('admin_menu', 'plt_hide_wibstats_statistics_for_wordpress_mu_menus', 11);
Where do I put this code?