-
Home
-
SpeedyCache – Cache, Optimization, Performance
- Tips
function plt_hide_speedycache_menus() {
//Hide "SpeedyCache".
remove_menu_page('speedycache');
//Hide "SpeedyCache → Settings".
remove_submenu_page('speedycache', 'speedycache');
//Hide "SpeedyCache → Manage Cache".
remove_submenu_page('speedycache', 'speedycache-manage-cache');
//Hide "SpeedyCache → CDN".
remove_submenu_page('speedycache', 'speedycache-cdn');
//Hide "SpeedyCache → Excludes".
remove_submenu_page('speedycache', 'speedycache-exclude');
//Hide "SpeedyCache → Object".
remove_submenu_page('speedycache', 'speedycache-object');
//Hide "SpeedyCache → Database".
remove_submenu_page('speedycache', 'speedycache-db');
//Hide "SpeedyCache → Bloat Remover".
remove_submenu_page('speedycache', 'speedycache-bloat');
//Hide "SpeedyCache → Test PageSpeed".
remove_submenu_page('speedycache', 'speedycache-test');
//Hide "SpeedyCache → Support".
remove_submenu_page('speedycache', 'speedycache-support');
}
add_action('admin_menu', 'plt_hide_speedycache_menus', 11);
Where do I put this code?