-
Home
-
CM Custom Reports – Flexible reporting to track what matters most
- Tips
function plt_hide_cm_custom_reports_menus() {
//Hide "CM Custom Reports".
remove_menu_page('cm-custom-reports');
//Hide "CM Custom Reports → Reports".
remove_submenu_page('cm-custom-reports', 'cm-custom-reports');
//Hide "CM Custom Reports → Schedules".
remove_submenu_page('cm-custom-reports', 'cm-custom-reports-schedules');
//Hide "CM Custom Reports → Email Templates".
remove_submenu_page('cm-custom-reports', 'cm-custom-reports-templates');
//Hide "CM Custom Reports → Settings".
remove_submenu_page('cm-custom-reports', 'cm-custom-reports-settings');
//Hide "CM Custom Reports →".
remove_submenu_page('cm-custom-reports', '#');
//Hide "CM Custom Reports → Upgradeā¤".
remove_submenu_page('cm-custom-reports', 'cmcr_pro');
//Hide "CM Custom Reports → User Guide".
remove_submenu_page('cm-custom-reports', 'cmcr_about');
//Hide "CM Custom Reports → Related Plugins".
remove_submenu_page('cm-custom-reports', 'cmcr_addons');
}
add_action('admin_menu', 'plt_hide_cm_custom_reports_menus', 22);
Where do I put this code?