-
Home
-
Solar Wizard Lite
- Tips
How to Hide Solar Wizard Lite Admin Menus
function plt_hide_solar_wizard_lite_menus() {
//Hide "Solar Wizard".
remove_menu_page('solar_options');
//Hide "Solar Wizard → Settings".
remove_submenu_page('solar_options', 'solar_options');
//Hide "Solar Wizard → Quotes".
remove_submenu_page('solar_options', 'edit.php?post_type=quote');
//Hide "Solar Wizard → Upgrade".
remove_submenu_page('solar_options', 'https://solarwizardplugin.com');
}
add_action('admin_menu', 'plt_hide_solar_wizard_lite_menus', 11);
Where do I put this code?
How to Hide the "Solar Quote Details" Meta Box
function plt_hide_solar_wizard_lite_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Solar Quote Details" meta box.
remove_meta_box('quote_box_id', $screen->id, 'advanced');
}
add_action('add_meta_boxes', 'plt_hide_solar_wizard_lite_metaboxes', 20);