-
Home
-
Spectra – WordPress Gutenberg Blocks
- Tips
function plt_hide_ultimate_addons_for_gutenberg_menus() {
//Hide "Spectra".
remove_menu_page('spectra');
//Hide "Spectra → Dashboard".
remove_submenu_page('spectra', 'spectra');
//Hide "Spectra → Blocks".
remove_submenu_page('spectra', 'spectra&path=blocks');
//Hide "Spectra → Popup Builder".
remove_submenu_page('spectra', 'edit.php?post_type=spectra-popup');
//Hide "Spectra → AI Features".
remove_submenu_page('spectra', 'spectra&path=ai-features');
//Hide "Spectra → Settings".
remove_submenu_page('spectra', 'spectra&path=settings');
}
add_action('admin_menu', 'plt_hide_ultimate_addons_for_gutenberg_menus', 11);
Where do I put this code?