-
Home
-
WP Client Reports
- Tips
How to Hide WP Client Reports Admin Menus
function plt_hide_wp_client_reports_menus() {
//Hide the "Dashboard → Reports" menu.
remove_submenu_page('index.php', 'wp_client_reports');
//Hide the "Settings → WP Client Reports" menu.
remove_submenu_page('options-general.php', 'wp_client_reports');
}
add_action('admin_menu', 'plt_hide_wp_client_reports_menus', 11);
Where do I put this code?
How to Hide the "Updates Run - Last 30 Days" Dashboard Widget
function plt_hide_wp_client_reports_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Updates Run - Last 30 Days" widget.
remove_meta_box('wp_client_reports_last30_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_wp_client_reports_dashboard_widgets', 20);