-
Home
-
Process & Queue Manager
- Tips
How to Hide Process & Queue Manager Admin Menus
function plt_hide_pqm_production_queue_menus() {
//Hide "Production".
remove_menu_page('procquma');
//Hide "Production → Tasks".
remove_submenu_page('procquma', 'procquma');
//Hide "Production → Calendar".
remove_submenu_page('procquma', 'procquma&view=calendar');
//Hide "Production → Add task".
remove_submenu_page('procquma', 'procquma-add-task');
//Hide "Production → Departments".
remove_submenu_page('procquma', 'procquma&view=departments');
//Hide "Production → Reports".
remove_submenu_page('procquma', 'procquma-reports');
//Hide "Production → Emails".
remove_submenu_page('procquma', 'procquma-emails');
//Hide "Production → Admin panel".
remove_submenu_page('procquma', 'procquma-admin-panel');
//Hide "Production → Help".
remove_submenu_page('procquma', 'procquma-help');
//Hide "Production → Compare Free / Pro".
remove_submenu_page('procquma', 'procquma-pro');
}
add_action('admin_menu', 'plt_hide_pqm_production_queue_menus', 61);
Where do I put this code?
How to Hide the "PQM KPI" Dashboard Widget
function plt_hide_pqm_production_queue_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "PQM KPI" widget.
remove_meta_box('procquma_kpi_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_pqm_production_queue_dashboard_widgets', 20);