-
Home
-
QA Analytics
- Tips
How to Hide QA Analytics Admin Menus
function plt_hide_qa_heatmap_analytics_menus() {
//Hide "QA Analytics".
remove_menu_page('qahm-home');
//Hide "QA Analytics → Home".
remove_submenu_page('qahm-home', 'qahm-home');
//Hide "QA Analytics → Real-Time View".
remove_submenu_page('qahm-home', 'qahm-realtime');
//Hide "QA Analytics → SEO Analysis".
remove_submenu_page('qahm-home', 'qahm-seo');
//Hide "QA Analytics → Page Version Hub".
remove_submenu_page('qahm-home', 'qahm-heatmap');
//Hide "QA Analytics → License Activation".
remove_submenu_page('qahm-home', 'qahm-license');
//Hide "QA Analytics → Settings".
remove_submenu_page('qahm-home', 'qahm-config');
//Hide "QA Analytics → Help".
remove_submenu_page('qahm-home', 'qahm-help');
}
add_action('admin_menu', 'plt_hide_qa_heatmap_analytics_menus', 11);
Where do I put this code?
How to Hide QA Analytics Dashboard Widgets
function plt_hide_qa_heatmap_analytics_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "[QA] Realtime" widget.
remove_meta_box('qahm_dashboard_widget1', 'dashboard', 'normal');
//Remove the "[QA] Reports Overview" widget.
remove_meta_box('qahm_dashboard_widget2', 'dashboard', 'normal');
//Remove the "[QA] Growing Landing Page" widget.
remove_meta_box('qahm_dashboard_widget3', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_qa_heatmap_analytics_dashboard_widgets', 20);