-
Home
-
NitroPack – Caching & Speed Optimization for Core Web Vitals, Defer CSS & JS, Lazy load Images and CDN
- Tips
How to Hide the "NitroPack" Admin Menu
function plt_hide_nitropack_menus() {
//Hide the "Settings → NitroPack" menu.
remove_submenu_page('options-general.php', 'nitropack');
}
add_action('admin_menu', 'plt_hide_nitropack_menus', 11);
Where do I put this code?
How to Hide the "NitroPack" Meta Box
function plt_hide_nitropack_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "NitroPack" meta box.
remove_meta_box('nitropack_manage_cache_box', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_nitropack_metaboxes', 20);