-
Home
-
NewStatPress
- Tips
function plt_hide_newstatpress_menus() {
//Hide "NewStatPress".
remove_menu_page('nsp-main');
//Hide "NewStatPress → Overview".
remove_submenu_page('nsp-main', 'nsp-main');
//Hide "NewStatPress → Details".
remove_submenu_page('nsp-main', 'nsp_details');
//Hide "NewStatPress → Visits".
remove_submenu_page('nsp-main', 'nsp_visits');
//Hide "NewStatPress → Search".
remove_submenu_page('nsp-main', 'nsp_search');
//Hide "NewStatPress → Tools".
remove_submenu_page('nsp-main', 'nsp_tools');
//Hide "NewStatPress → Options".
remove_submenu_page('nsp-main', 'nsp_options');
//Hide "NewStatPress → Credits".
remove_submenu_page('nsp-main', 'nsp_credits');
}
add_action('admin_menu', 'plt_hide_newstatpress_menus', 11);
Where do I put this code?