-
Home
-
Panorama – WordPress Project Management Plugin
- Tips
How to Hide Project Panorama - WordPress Project Management Plugin Admin Menus
function plt_hide_project_panorama_lite_menus() {
//Hide "Projects".
remove_menu_page('edit.php?post_type=psp_projects');
//Hide "Projects → All Projects".
remove_submenu_page('edit.php?post_type=psp_projects', 'edit.php?post_type=psp_projects');
//Hide "Projects → Add New Project".
remove_submenu_page('edit.php?post_type=psp_projects', 'post-new.php?post_type=psp_projects');
//Hide "Projects → Project Types".
remove_submenu_page('edit.php?post_type=psp_projects', 'edit-tags.php?taxonomy=psp_tax&post_type=psp_projects');
//Hide "Projects → Settings".
remove_submenu_page('edit.php?post_type=psp_projects', 'panorama-license');
//Hide "Projects → Support".
remove_submenu_page('edit.php?post_type=psp_projects', 'https://www.projectpanorama.com/support/');
//Hide "Projects → Get Project Panorama Pro".
remove_submenu_page('edit.php?post_type=psp_projects', 'https://www.projectpanorama.com/');
//Hide "Projects → Calendar".
remove_submenu_page('edit.php?post_type=psp_projects', 'panorama-calendar');
//Hide "Projects → Dashboard".
remove_submenu_page('edit.php?post_type=psp_projects', 'http://127.0.0.1/panorama/');
//Hide "Custom Fields".
remove_menu_page('edit.php?post_type=acf-field-group');
//Hide "Custom Fields → Field Groups".
remove_submenu_page('edit.php?post_type=acf-field-group', 'edit.php?post_type=acf-field-group');
//Hide "Custom Fields → Add New".
remove_submenu_page('edit.php?post_type=acf-field-group', 'post-new.php?post_type=acf-field-group');
//Hide "Custom Fields → Tools".
remove_submenu_page('edit.php?post_type=acf-field-group', 'acf-tools');
}
add_action('admin_menu', 'plt_hide_project_panorama_lite_menus', 1000);
Where do I put this code?
How to Hide Project Panorama - WordPress Project Management Plugin Meta Boxes
function plt_hide_project_panorama_lite_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Project Panorama" meta box.
remove_meta_box('psp_lite_promotional_sidebar', $screen->id, 'side');
//Hide the "User Access" meta box.
remove_meta_box('_pano_users_meta', $screen->id, 'side');
//Hide the "Documents" meta box.
remove_meta_box('_pano__doc_metabox', $screen->id, 'normal');
//Hide the "Phases" meta box.
remove_meta_box('_pano_metabox', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_project_panorama_lite_metaboxes', 20);
How to Hide the "Projects" Dashboard Widget
function plt_hide_project_panorama_lite_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Projects" widget.
remove_meta_box('psp_dashboard_overview', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_project_panorama_lite_dashboard_widgets', 20);