-
Home
-
Dynamic Front-End Heartbeat Control
- Tips
How to Hide the "DFEHC" Admin Menu
function plt_hide_dynamic_front_end_heartbeat_control_menus() {
//Hide the "Settings → DFEHC" menu.
remove_submenu_page('options-general.php', 'dfehc_plugin');
}
add_action('admin_menu', 'plt_hide_dynamic_front_end_heartbeat_control_menus', 11);
Where do I put this code?
How to Hide the "Dynamic Heartbeat Health Check" Dashboard Widget
function plt_hide_dynamic_front_end_heartbeat_control_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Dynamic Heartbeat Health Check" widget.
remove_meta_box('heartbeat_health_dashboard_widget', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_dynamic_front_end_heartbeat_control_dashboard_widgets', 20);