-
Home
-
Hummingbird Performance – Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN
- Tips
function plt_hide_hummingbird_performance_menus() {
//Hide "Hummingbird".
remove_menu_page('wphb');
//Hide "Hummingbird → Dashboard".
remove_submenu_page('wphb', 'wphb');
//Hide "Hummingbird → Performance Test".
remove_submenu_page('wphb', 'wphb-performance');
//Hide "Hummingbird → Caching".
remove_submenu_page('wphb', 'wphb-caching');
//Hide "Hummingbird → Gzip Compression".
remove_submenu_page('wphb', 'wphb-gzip');
//Hide "Hummingbird → Asset Optimization".
remove_submenu_page('wphb', 'wphb-minification');
//Hide "Hummingbird → Advanced Tools".
remove_submenu_page('wphb', 'wphb-advanced');
//Hide "Hummingbird → Uptime".
remove_submenu_page('wphb', 'wphb-uptime');
//Hide "Hummingbird → Notifications".
remove_submenu_page('wphb', 'wphb-notifications');
//Hide "Hummingbird → Settings".
remove_submenu_page('wphb', 'wphb-settings');
//Hide "Hummingbird → Tutorials".
remove_submenu_page('wphb', 'wphb-tutorials');
//Hide "Hummingbird → Upgrade for 80% Off!".
remove_submenu_page('wphb', 'https://wpmudev.com/project/wp-hummingbird/?utm_source=hummingbird&utm_medium=plugin&utm_campaign=hummingbird_submenu_upsell');
}
add_action('admin_menu', 'plt_hide_hummingbird_performance_menus', 11);
Where do I put this code?